Skip to content

Commit 9edc8b6

Browse files
authored
Create searchJqlIterate.groovy
1 parent 9aeaaa5 commit 9edc8b6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

jira_cloud/searchJqlIterate.groovy

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//Script to perform search to get list of issues and then iterate over them
2+
3+
def response = get('/rest/api/2/search?jql=filter=10047')
4+
.header('Content-Type', 'application/json')
5+
.asObject(Map)
6+
7+
response.body.issues.each { it ->
8+
9+
getIssueDetails(it)
10+
11+
}
12+
13+
def getIssueDetails(issue) {
14+
15+
logger.info("Issue Key: " + issue.key +", "+ issue.fields.priority.name)
16+
}

0 commit comments

Comments
 (0)