I'm creating a dynamic process that needs to know the required fields on creation from a specific project and issue type.
In my understanding, they could be defined in 3 places:
I'm willing to let go the behaviors ones since it could be a bit more complex.
After some time researching, I don't get too much luck. The nears thing that I found is the QuickCreateIssue endpoint that returns a json that identify if a field is required. But even that, I don't know how to request it.
Could anyone provide some help on archiving this?
Not quite. Your list should be:
Field Config
Workflow validator on the create transition
SR Behaviours
But there are problems with them - the REST API won't tell you about the validators or the Behaviours. The only way to work those out would be to read the workflow and parse it for the use of a validator (which could be hard as there are many validators out there, even Scripted ones meaning that you'd have to read the scripts behind them too), and read all the Behaviours set up in SR to work out if they make fields mandatory. On the bright side, most people don't use validators to make fields mandatory on create, because field configs do it.
The field config is a bit of a faff to get your head around, you have to read the project and issue type to find the field config in use, then you can ask that what fields are mandatory, but it is plain and simple to do.
This is the sort of question that makes me ask "Why?". What are you trying to achieve here?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.