Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation throwing error on setting resolution

Jill Vieregge
Contributor
July 4, 2024

Slightly different than what I've seen in the community so far.

#1: My automation: if a parent is done set its children to done and inherit the resolution reason from the parent.

#2: automation error

#3a: shows the workflow. For global transitions to Canceled/Done, has a trigger that sets the resolution.

#3b: For Reset Resolution, has a screen that includes the resolution.1. Automation.png2. Automation Error.png3a. Wkflow global transition.png3b. Wkflow Reset Resolution.png

2 answers

2 votes
John Funk
Community Champion
July 4, 2024

Hi Jill,

The problem is probably that you are trying to set a value on the transition but there is a screen associated with the transition, so the automation doesn’t know what to do with that.

John Funk
Community Champion
July 6, 2024

@Jill Vieregge  - Did you actually publish the workflow after you removed the screen? 

Here's another suggestion - add a new transition to Done - call it System Update or something like that. Then add a Condition to the transition User is in any Group. 

Select atlassian-addons-admin group. You can also select the Jira Admins group if you want. 

Save and Publish the workflow. Then test again. 

0 votes
Jehan Bhathena
Community Champion
July 4, 2024

Hi @Jill Vieregge ,

I'll agree with what @John Funk mentioned, you seem to have a Screen present on the 'Reset Resolution' transition, does this screen have anything mandatory? Also, is the Resolution field include in this screen?

Another possibility (this is in theory), the parent itself may now have a resolution?(To debug this ppoint, try using Log Action to print the parent tickets resolution to verify it has a value)

Jill Vieregge
Contributor
July 5, 2024

I removed the reset resolution transitions (with screens).

Added logging.

But get the same error.

Also, although the automation logging ends with saying the does not move transition, its status and resolution is in fact changed to reflect the parent which is the desired behaviour (status = Canceled and Resolution = Canceled).Auto w Logging.pngLogs.png

Jehan - the parent is supposed to have a resolution. The children are supposed to inherit it from the parent.

 

Jehan Bhathena
Community Champion
July 5, 2024

Hi @Jill ViereggeVieregge,

About the "Reset Resolution" Transition, what I meant was that the screen should have the "Resolution" Field available, unless it is available there Jira won't allow resolution to be set for that transition.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events