I want to create a field called "Risk" field - meaning if fixing this bug or adding this feature is risky or not. (Low, Medium, High)
What I want is that when the risk is "High" I want another transition to be execute into a step called approval - that will give a user with the rule Approver the ability to decline/approve the task.
Only after the task(fixing the bug or adding the feature) is approved the status will continue to next step.
(Please also if you can add an explanation how to allow only someone with the "role" Approver to be able to approve the task)
If the risk is Medium or Low it will continue without transition to the next step.
Thank you in Advance,
What you have to do is to ban the next transition if your risk is High. You can do it by adding a new Condition on your transition which checks your custom field value.
Let's say your workflow is now like this: "A --> B --> C", but you want this for High risk issues: "A --> B --> Approval --> C"
In this example, you should ban the transition "B --> C" if the issue is in High risk, allowing the transition "B --> Approval" in this case. Both transitions "B --> C" and "B --> Approval" would appear on your workflow design.
Regarding your question about the role "Approver", it is another condition on your transition "Approval --> C". The type of condition is "User is in Project Role".
Have a look to JIRA documentation on configuring workflows.
Solution was as Sergio suggested.
Using the Field "Risk" and adding a transition to "Need Approval" state.
Added another transition to "In Progress"
Adding a "Role" called "Approvers" and adding users there.
From state "Need Approval" created 2 transitions - "Deny" and "Approve"
Reopen Issue problem:
Sergio thank you very much - You've helped me alot.
You may need a listener, not a condition, to transition it automatically to the Approval state. If not, you can stick to the condition
Check this, even if you're not using our plugins, you can borrow the idea: http://confluence.kepler-rominfo.com/display/TR/Start+progress+on+an+issue+only+after+the+approval+of+project+manager
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG