When a ticket is moved from "To Do" to "In Progress" or "Backlog" to "In Progress", uses the same transition ( "Go to In Progress"). In the above workflow, I have a specific requirement of making a certain field mandatory in each transition. But the fields are different in each case.
Hence how to make two different fields required in the same transition used in two different places.
From status To Status Transition Field required
To Do In Progress Go to In Progress Capex ID
Backlog In Progress Go to In Progress Compliance ID
Hi Pragyna - Welcome to the Atlassian Community!
You would need to use two different transitions. Is there a problem with that?
Hi John ,
Thanks for responding.
Actually I gave an example of two,but the requirement is of 7-8 scenarios where i have used only 1 transition. Now if i change it to separate transitions, then it will be more confusing.Is there any other way feasible ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
using our JMWE app, you could add one Fields Required Validator per source status, and configure each validator using the following approach (taking "To Do" as the example source status):
issue.get("status").name == "To Do"
Cheers,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If your goal is to use a single (reused) transition, you'll probably need an additional workflow app from the Atlassian Marketplace.
For Jira Workflow Toolbox being one among those, you could use a logical validator with an expression like
(%{issue.status} = "To Do" AND %{issue.cf12345} != null) OR (%{issue.status} = "Backlog" AND %{issue.cf67890} != null)
where 12345 has to be replaced with the id of your 'Capex ID' field and 67890 with the id of your 'Compliance ID' field.
Cheers
Thorsten
Disclaimer: I'm part of the team behind the aforementioned app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.