Hi,
I have a question which may have been asked multiple times, however I can't seem to find the correct solution.
We have a simple workflow to start with.
We create a issue and the status is: New Issue.
Then we want to add 1 transition which can go to 1 of the 2 next statuses.
The transition is: Meets SLA Requirements. In this transition there is a screen: Yes or No.
When Yes is checked we want to automatically go to the status: Prepare Maintenance. If No is checked, then we want the transition to move to the status: Waiting for customer...
How can we add this validator to the transition? I'm only able to select the standard validators like Permissions etc.
Thanks in advance!
Best Regards,
Mitch
Hello,
You would need an add-on for it. For example, you could use the Power Scripts add-on:
You could write a post function with a code like this:
if (#{Meets SLA Requirements} == "Yes") {
autotransition(
121
,
"PRJ-123"
);
} else {autotransition(
122
,
"PRJ-123"
);
}
Where 121 is the id of the transition leading to the Prepare Maintenance status.
122 is the id of the transittion leading to the Waiting for customer status.
You can find ids of transition if you open the required workflow.
You can find more info about post functions here:
https://confluence.cprime.io/display/JJUPIN/Customizing+workflows
Thanks for the reply.
I understand that this certainly can be done with add-on. But is this not possible without any add-on?
Since it is a pretty common step in a workflow in my opinion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could create a Service Desk automation rule. Add the Issue is Created trigger. Then add condition ( "Meets SLA Requirements" = "Yes") and then add the Transition Issue action to transition this issue to the Prepare Maintanance status.
Then create the same rule for the "Meets SLA Requirements" = "No"
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.
This is working correctly for me! I have added 1 transition between the new Issue and Prepare Maintenance & Waiting for customer. When it goes to the transition in between (Check SLA Status), it will automatically go further thanks to the trigger.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alexey Matveev Is this also posible to do with the extension: Jira Misc Workflow Extensions?
So that we have a transition with a yes or no answer, and then go to 1 status based on the selected answer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also do it with JMWE. But I do not have a script for this plugin.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.