Forums

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

there is an api rest for jira cloud to get informations about a project and storys ?!

Ayoub Karaa July 11, 2019

i want to get all informations about a project and eatch storys do work on stats about tasks and tasks witch are done 

2 answers

2 accepted

1 vote
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2019

Hello Karaa,

I understand that you would like to return:

1 - All information about a Specific project

2 - all the issues under that project

3 - All Done issues under that project

Have I understood it correctly?

You will need to use three different REST API calls to get the information above, replacing the Bold characters below with the data in your instance:

- To return the details of a specific project through REST API

https://yourdomain.atlassian.net/rest/api/3/project/projectkey

- To return the details of all issues under a specific project

https://yourdomain.atlassian.net/rest/api/3/search?jql=project=projectkey

- To return the details of all Done Issues under a specific project

https://yourdomain.atlassian.net/rest/api/3/search?jql=project=projectkey%20and%20status=done

For more information/examples about REST API calls in JIRA, you can check the documentation below:

JIRA Rest API Reference

Let me know if this information helps.

Ayoub Karaa July 13, 2019

thank you a lot it help me aloot thanks 

but when i test with postman it return 404 not found project not found 
but i put the right project key

0 votes
Answer accepted
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2019

Hello,

To get all the story issues in a project you can use JQL in combination with the JQL API search function covered here:

And then use a JQL statement like:

project="ExampleProject" AND issuetype=story

This GET would convert the JQL in the URL for the API endpoint for a curl command like the following:

curl -D- -u EMAIL:AUTHTOKEN -X GET 'https://YOUR_BASE_URL.atlassian.net/rest/api/2/search?jql=project=ExampleProject+and+issuetype=Story'

Narrowing down the results further you can modify the JQL as much as necessary to get the desired result set, check out Advanced searching for additional search terms.

Regards,
Earl

Suggest an answer

Log in or Sign up to answer