Hi,
I have a use case to block the transition of workflow to Approved status by the reporter.
This is to restrict the person to approve their own tickets.
I checked in transition condition, but it has option to "Allow only reporter to transition the status" not having option to block it.
Is there any way this can be achieved in JIRA?
There's no default condition/validator to achieve this, but you can do it with the help of an add-on like JMWE/JSU/ScriptRunner.
For example, with JMWE, "Build-your-own (scripted) condition" you could write something like this:
user.accountId != issue.reporter.accountId
This will return "false" if the current user is the same as the report and therefor will hide the transition. If the reporter is different, the expression will return "true" and the transition will be visible.
Kind regards
Jorden
Works for me Tks @Jorden Van Bogaert
Is it possible to configure a validation as well?
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.