API Get Comment from unresolved cases

Wojciech Mokrzysiak October 11, 2022

Hi 

 

this query shows all comments in all Jira's in a project via API.

How can I limit that to only cases that are not resolved ? 

 

https://jnjiraportal.sif.jndata.net/rest/api/2/search?jql=project=NETWORK&fields=comment

 

And if it is possible to get only the latest comment? 

1 answer

0 votes
Neil
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2022

On a standard project configuration, you should be able to accomplish this by adding this to your JQL:

resolution=Unresolved

So, in your case:

PROJECT=NETWORK AND resolution=Unresolved

You may need to URL encode that (ex: spaces to %20, etc.)

 

And if it is possible to get only the latest comment? 

Good question.. not sure how to do that. Perhaps someone else can chime whether or not you can sort by last comment date, and perhaps limit it to 1 result?

Suggest an answer

Log in or Sign up to answer