Forums

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

How to get all the validators/conditions defined in the Workflow transition step ?

Deleted user February 19, 2018

I was able to get all the postfunctions defined in the workflow using WorkflowManager class using the function getPostFunctionsForWorkflow(JiraWorkflow workflow).

But I was not able to do the same for validators and conditions defined in the workflow.

Can anyone help me with the api's or some way to get these details from Jira ?

1 answer

1 vote
Maciej Nowakowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 26, 2018

Hey @[deleted]

In order to get conditions, most likely you'll need to traverse through ActionDescriptors in workflow which are representation for transitions. For each ActionDescriptor you'll be able to get conditions, which are called restrictions:

actionDescriptor.getRestriction()

 

In regards to validators, having ActionDescriptor in had is also helpful are they are laying also there:

actionDescriptor.getValidators()

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events