Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Get list of issues,timespent,comments of the user of the project

vinod September 1, 2016

Hi any one help me out to get list of user issues along with comments of the project in single query

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
noamdah
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 1, 2016

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:

  • JIRA_USER
  • JIRA_PASS
  • JIRA_URL
  • PROJECT_KEY

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:

  • JIRA_USER
  • JIRA_PASS
  • JIRA_URL
  • ISSUE_KEY

Example:

curl -u admin:admin https://jira.atlassian.net/api/2/issue/TEST-1/comment

TAGS
AUG Leaders

Atlassian Community Events