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?
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:
Have fun!
Finally got around to implement this as this is very roundabout just to land in a dead end pretty quickly:
I have a hard time figuring out "which" screen is the ticket creation screen. None of the ones listed to me seem to correspond with the order of fields as defined in the ProjectSettings -> IssueTypes config
When these settings are changed, this is immediately reflected in the ticket creaiton web UI. Conversely, adding tabs and what not on e.g. the default screen (scheme doe snot affect anything there.
Also, i cna onyl see the screen config in the global admin panel - there ar enot such settings in my project settings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @Wortex17 ,
I have exactly the same problem.
I think there is no solution. The problem is that team-managed (next-gen) projects (TMP) don't have tabs. Therefore it's not possible to query tabs for a them and find out the order of fields.
This also explains why all the schemes don't match. It's because TMPs don't have schemes. You queried the schemes for the CMPs (company managed projects / classic projects).
Also the endpoint api-rest-api-3-screens-screenid-tabs-get does return
```
{
"errorMessages": [
"Screen with id 10000 does not exist"
],
"errors": {}
}
```
For a screen that does 100% exist because I retrieved the list of screens with api-rest-api-3-screens-get . Which is also the problem in this thread (even though it's `2` API).
Also this thread (3 years ago) has the same problem and an Atlassian staff wanted to find out more in the respective development team but then there was no further communication.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.