Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

i want to group the result of api rest by key how i can do it

Ayoub Karaa July 20, 2019

im using api rest to get all projects and another api to get all issues and another api to get all logged issues 
i want to group all issuses by project and get all logg grouped by issue

 

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 22, 2019

Hello Ayoub,

Please, confirm if I have properly understood your request just to know we are on the same page here:

1 - You are using a rest API to return all issues in your JIRA Cloud and you want it to be ordered per project. Is it correct?

To achieve the scenario above, you can use the following REST API:

https://yourdomain.atlassian.net/rest/api/3/search?jql=order+by+project

2 - You are using a REST API to return all the work log entries performed in your issues and you want them to be grouped per issue, so all the work log entries performed for a common issue will be grouped together in the list. Is it correct?

To achieve the scenario above, you can create a script and configure it with a single REST API call for each issue work log entries:

- https://yourdomain.atlassian.net/rest/api/3/issue/TEST-1/worklog

- https://yourdomain.atlassian.net/rest/api/3/issue/TEST-2/worklog

- https://yourdomain.atlassian.net/rest/api/3/issue/TEST-3/worklog

Let me know if this is what you were trying to achieve.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events