Local Jira
This data source type allows you to use the local Jira cloud instance as data source, by using the REST API provided by Atlassian.
After selecting this option an example request is filled in. You can use most of the API calls listed in the Jira Cloud documentation.
The example uses the search API
endpoint with a JQL query
in the POST
body
https://yourInstance.atlassian.net/rest/api/2/search
{
"jql": "resolution = Unresolved order by priority DESC,updated DESC",
"maxResults": 10,
"fields": [
"summary"
]
}
The search endpoint has a limitation of 50 search results per request. If you need more than this, you can use the more complicated but also more powerful expression API
.
https://yourInstance.atlassian.net/rest/api/2/expression/eval
{
"expression": "issues.map(issue => { issue_key: issue.key, summary: issue.summary})",
"context": {
"issues": {
"jql": {
"query": "project = MYPROJ"
}
}
}
}
In the expression you can define what kind of data of an issue you exactly need to reduce traffic. Find a more elaborate explanation of Jira expressions here.