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 ?
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()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.