I am unable to get correct required field on issue transition
Blocked On is a mandatory field when I transition a task to Blocked state.
However /transitions?expand=transitions.fields ,Transitions GET request does not show it as required field.
If I do a POST transition without Blocked On field response is `400` `Bad Request`
Is there a workaround to know required fields so to make transition via API possible.
I have seen this answer so is there any workaround to know validators for a transition
Thanks a lot
UI with Mandatory blocked on
Transition `GET` response does not show it required
The field is not shown as a required field here, because technically the field is not being required within the field configuration scheme. If it was required there, then throughout the entire lifecycle of an issue in Jira, that field would be required to have a value. Instead it appears that this is only being required by the workflow validator, when that issue is transitioned to that next state.
If you were building a Connect App - then you could use the REST API endpoint of
in order to see the validator, conditions, and post functions of that workflow. However that endpoint is restricted to Connect Apps:
Permissions required: Only Connect apps can use this operation.
Connect app scope required:
Aside from that approach, I'm not sure there is a way to use the REST API to learn this about that workflow as an end user. If you were a Jira Admin, you could call the endpoint
This would allow you to see the validators and conditions as well. But for an end user, that isn't typically an option here.
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
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