Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,492
Community Members
 
Community Events
165
Community Groups

Unable to get correct required field on issue transition

Edited
shivam_p I'm New Here Jun 16, 2022

Hey everyone,

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

Screenshot 2022-06-16 at 4.15.31 PM.png

 

Transition `GET` response does not show it required

Screenshot 2022-06-16 at 4.16.15 PM.png

1 answer

1 accepted

0 votes
Answer accepted
Andy Heinzer Atlassian Team Jun 17, 2022

Hi,

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 requiredREAD

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.

Andy

shivam_p I'm New Here Jun 18, 2022

Thanks a lot, This helps

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 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...

14,862 views 37 49
Read article

Community Events

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

Events near you