Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get correct required field on issue transition

shivam.p
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 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
Atlassian Team members are employees working across the company in a wide variety of roles.
June 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
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2022

Thanks a lot, This helps

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events