Order of fields via Jira Cloud REST API

Wortex17
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 18, 2024

When querying the fields required to create a ticket via the rest API, the returned fields seem to be sorted alphabetically by their key.

How can I determine the order of the fields as shown in the JIRA web client?
Since project managers can edit the order of fields in the project settings, how can I access this order form a 3rd party app to replicate the behaviour and the project managers intent?

1 answer

0 votes
David Bakkers
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.
April 20, 2024

Hello @Wortex17 

As described in that Project settings document you linked to, fields are 'sorted' in the GUI by their placement in a screen. That screen can also contain tabs, which further arranges the fields into groups.

So, to replicate all that, you'd need to get what screens the fields are on, then get the tabs on those screens, then get the fields on those tabs on those screens.

WHEW!

The corresponding REST API endpoints are:

  1. Screens
  2. Screen tabs
  3. Screen tab fields

Have fun!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events