Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to fetch the dependency on workflow transition field using REST

For ex- if "In Progress" of status field  is dependent on some required field before it transitions into another state, is there a way to find the dependency using REST API in jira?

1 answer

0 votes

Hello @Amay Trivedi ,

If the Required field is set in the field configuration scheme (i.e. a global field setting),  you can look at and expand the endpoint:

This will return either all transitions or a transition that can be performed by the user on an issue, based on the issue's status, and expanding on the transitions.fields, will show a "required" : {true or false} value for each field present.

However, if the required field is placed in a validator in the workflow, the rest API has no visibility into validators. Validators are executed by code in the workflow during a transition, and would therefore be an action independent from an issue's data directly and require knowledge of the workflow variables in advance.

Regards,
Earl

Hi @Earl McCutcheon ,

Is there a way to get that information or some workaround if you can suggest?

 

Thanks!

Hello @Amay Trivedi ,

I did a bit of searching and found that while the rest API has no visibility into validators on the issue directly, the validator details can be pulled from the endpoints for the workflows directly on a Get workflows paginated call and expanding on "transition.rules" via:

/rest/api/3/workflow/search?expand=transitions.rules

So calling the workflow details related to the project first to identify that required knowledge of the workflow variables in advance.

Regards,
Earl 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

114 views 0 2
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