Reputation:
This is my first time working with Jira and their API. My company wants me to fetch all "ASAPSD" issues, but I don't understand how to. The core problem in itself is that I do not understand exactly how Jira works, and how issues are "built" up.
The issue starts with "ASAPSD" followed by some random characters and numbers. For example "ASAPSD-334". How can I, with a GET request, get all issues that start with ASAPSD?
Upvotes: 0
Views: 1551
Reputation: 1824
The first part (prefix) is the Project Key representing a project/collection where all similar issues are stored (in this case, ASAPSD may stand for ASAP Service Desk:-). There are certainly more projects in every Jira instance. Some other projects are intended to track different activities.
You can search for any issues using the search function (available also via REST API).
First, log in to the Jira and try to search for the issues manually by yourself - in Issue Navigator (via Issues top menu bar). Here you'll find that you can search all issues via Basic (Project is ASAPSD) or Advanced search (project = ASAPSD
). This advanced search is called JQL (Jira Query Language).
You can then use this JQL in your REST API search method: https://docs.atlassian.com/software/jira/docs/api/REST/latest/#api/2/search-search
GET https://jira.yourdomain.com/rest/api/2/search?jql=project%3DASAPSD
maxResults
param) or paginate (startAt
param) over next results.expand
and fields
params you can alter the output to get more/less information.Upvotes: 1