We have a workflow for a service request that contains 2 approval steps visible on portal. If approver selects Reject request is transitioned to Canceled state and resolution is added by post function.
However service desk agents can also reject request from any status and resolution is provided in the Screen.
In both cases Reject is a transition from All to Canceled. But customers obviously do not see the Screen since they do not have access to Jira Core.
Is there a way to
1. if user is an agent then set resolution from Screen selection
2. if user is a customer then set resolution from a post function.
I tried adding another All->Canceled transition to workflow, but Jira prevents it.
As a solution I can create a separate Declined status for approvers, but it looks like an overkill for me.
I have experience in Groovy and can add a Groovy function to All->Canceled transition that would set the resolution conditionally from Screen or from predefined value. Is it achievable by Groovy script?
Hi @Sam Huawey
Can you show the workflow please.
But Yes, this is possible.
Use the all transition for agents and have individual transitions from the approval states to Canceled and set post-functions with a default resolution on these transitions.
A single transition can't use both you options in one.
Groovy I don't know can it make a difference between action from portal or email?
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.