Community moderators have prevented the ability to post new answers.
curl -u JIRA_USER:JIRA_PASS -X POST -H "Content-Type: application/json" --data-binary "@jql.json" JIRA_URL/rest/api/2/search
Create a JSON file jql.json put in file the following:
{"fields": ["key", "timespent", "status", "reporter", "assignee"], "jql": "project = PROJECT_KEY", "startAt": 0, "maxResults": 1000}
Set the following parameters to your JIRA environment:
Example:
curl -u admin:admin -X POST -H "Content-Type: application/json" --data-binary "@jql.json" https://jira.atlassian.net/rest/api/2/search
jql.json file:
{"fields": ["key", "timespent", "status", "reporter", "assignee"], "jql": "project = TEST", "startAt": 0, "maxResults": 1000}
Comments cannot be brought for more then one issue.
To get the comments of an issue:
curl -u JIRA_USER:JIRA_PASS JIRA_URL/api/2/issue/ISSUE_KEY/comment
Set the following parameters to your JIRA environment:
Example:
curl -u admin:admin https://jira.atlassian.net/api/2/issue/TEST-1/comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.