We're in the process of setting up an internal support service desk, and I'm running in to a brick wall while attempting to route issues.
What we're hoping to accomplish is this:
Scenario #1 -
Scenario #2 -
The issue that I'm running into is that it's currently routing correctly on a 50/50 basis. Sometimes it doesn't update the status to Assigned & everything just sits in Waiting for Triage. Whereas I can open the same exact kind of ticket 2 minutes later, and it will automatically update the status to Assigned like we want it to.
In the included screenshot of the workflow mockup, I have 2 script workflow functions on the "OPEN" transition (after the Fire Event function) that read the following:
Workflow-Example.png
Condition: issue.components*.name.contains('System') Action: Waiting For Triage Additional Code: issueInputParameters.setAssigneeId('Unassigned') (The thinking behind this is that if a ticket comes in with a component of "System" it should fast-track to the Waiting For Triage transition & the assignee should = Unassigned...)
Condition: ! issue.components*.name.contains('MBO System') Action: Assign Additional Code: (currently blank) (The thinking behind this is that if a ticket comes in with any component other than "System" it should fast-track to the Assign transition & the assignee should = whatever is set as the default assignee on the project component configuration...)
Any help on this would be GREATLY appreciated!!! Thank you in advance.
Community moderators have prevented the ability to post new answers.
> issueInputParameters.setAssigneeId('Unassigned') That won't do what you think it will. You need: issueInputParameters.setAssigneeId(null)
Your two conditions are not mutually exclusive. Are they supposed to be? At most only one fast-track should happen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, I'm almost wondering if this would be something API should handle. Maybe the answer of the question here could help? https://answers.atlassian.com/questions/107630/jira-how-to-change-issue-status-via-rest
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even with conditions on each of the destination statuses, it is still 50/50. It's almost like the post-function steps process backwards randomly. These are currently the Post Functions for the "Create" transition:(in this order) 1. Creates the issue originally. 2. Re-index an issue to keep indexes in sync with the database. 3. Fire a Issue Created event that can be processed by the listeners. 4. Script workflow function : Fast-track transition an issue : If the condition is met the action 121 Waiting For Triage will be applied. (Code Block #1 above) 5. Script workflow function : Fast-track transition an issue : If the condition is met the action 11 Assign will be applied. (Code Block #2 above) Additionally, I've got the following condition in place on the "Waiting for Triage" transition: Script workflow function : The action will be allowed if the issue matches the JQL query: "project = SUPPORT AND component = "MBO System" AND assignee in (EMPTY)"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was going to suggest the use of "Conditions" myself. But have you also tried to have this looking for a script, too? Assuming you're using "Misc Workflows Extensions" and/or ScriptRunner. Your If/Then statements can be much more robust.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.