You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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:
Workflow validator on the create transition
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?