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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

While fetching global status values from Jira using API , some of the status values are not coming

We are fetching global status values from the jira using the API call. But we are not getting some of the status values . Those status values are visible from UI itself.

Does the pagination required while fetching the status values from Jira ?

Any limitation of Jira API for bringing number of  the records (jira global status values) ?

1 answer

0 votes
Leonard Chew Community Leader Jan 31, 2020

Hi Ashwini

Two things that can be checked:

  1. Verify that you really are using the global status call (/rest/api/2/status) and not the status call filtered by project
  2. Check the user with which you collect the status. Not all users will see all status.

For Point 1 , 

We are not making API call using Project Filter. We are doing (/rest/api/2/status) .

 

For Point 2 ,

Using the same user , we have checked within Jira UI and Jira API Call.

 

Still using the same user , we are not able to see in API but able to see from the Jira UI.

Leonard Chew Community Leader Jan 31, 2020

You are right. The output seems to be limited to 50 records.

The maxResults attribute for extending the REST output does not seem to apply on the status query. 

As an alternative you could fetch the status with a database SQL query:

select * 
from ISSUESTATUS
order by sequence;

Would like to confirm below scenario.

1. The status value has been added in jira global status.

2. That newly added status value has been associated with one workflow.

3. If that workflow is not associated with any of Jira project , then jira API for global status would give that status value or not.

Note :

1. At our end we found the similar scenario. After associating  the workflow (in which newly newly added global status value added ) with one project the jira api was giving the newly added status value.

2. Without associating the workflow with any project the status was not given by Jira API.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you