In our company we have created a workflow, which has an approvement step after the initial creation of the Issue.
An Issue can be approved by anyone, except the reporter. Or at least, that is the Idea.
After creation the Issues get the state Awaiting Approval, and then if approved they get the state Backlog.
We've tried using the Separation of Duties Constraint to get this to work.
Approve Issue Transition -> Constraint : Users that have performed the following transition may not do this transition: Any State -> Awaiting Approval
However, that does not seem to work, because Any State does not trigger on created state, I.E. No state.
There is a constraint Reporter Only, However, there is no negation on it as in Everyone but the reporter.
Does anyone have an Idea on how we can acheive this?
I came across this issue and able to do it on Jira Sofware cloud using the below steps.
Hi Sverre,
Welcome to Atlassian Community!
Currently, it's not possible to prevent the reporter to approve their own issues. If they have permission, they will be able to do this. We have a feature request suggesting the implementation of this ability:
- https://jira.atlassian.com/browse/JSDCLOUD-6678
Please, click on vote and watch to receive updates.
The best option, in this case, would be adding a Condition in the workflow, but there is nothing specific for reporter, so all users that usually are only approvers of tickets, you could add them to a group or role for example, and then add the condition to only allow them to execute the transition.
Regards,
Angélica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you're open to using apps or already have one providing Jira expression-based validators/conditions, then I think a simple expression would suffice:
user.accountId != issue.reporter.accountId
which would prevent the transition if the current user is the reporter
There are several options available on the Atlassian marketplace
I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira free app.
I would appreciate it if you could give it a try.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice one! Thank you for this tip. It looks like this could also be an alternative. I like how it looks and love that it's free - nice work! I'll let you know if I try this out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sal that looked promising at first but I couldn't get it to work when I tried it.
I found something that works for us! It's called "Include an approval step" in the Workflow!
⚠️CAUTION! Editing and publishing a Workflow that is active, will affect and change the workflow for ALL projects that share this workflow!
Then we use Automation to do other things to those issues where the Approver = Reporter.
Using only the above steps, the reporter can still add themself as an approver, but they can't actually approve it. So the issue will be in "limbo" and still have the status: "WAITING FOR MANAGER APPROVAL".
Source documentation: Add an approval step to a workflow | Jira Service Management Cloud | Atlassian Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.