我想做的是在Jira中找到与另一组问题共享相同修复版本的问题:
我相信在伪Python中这看起来像这样:
def versionRelatedIssuesOf(input_issues) -> list:
# Step ONE:
# iterate through all input issues and build a list of fix Versions
# references in those issues
versions = []
for issue in input_issues:
fixVersions = jira.getFixVersion(issue)
versions.append(fixVersions)
# Step TWO:
# iterate through all versions and get all issue types associated with
# these versions
output_issues = []
for version in fixVersions:
issues = jira.getIssuesInFixVersion(version)
output_issues.append(issues)
# Step THREE:
# profit :)
return output_issues
问:有人可以指出我在JQL和/或SJQL中执行此操作的方法(即,具有内置的ScriptRunner函数)吗?