Forums

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

Automation: FixVersion not found

Patrick R. September 24, 2020

Hi there,

I wanted to build a rule that notifies someone when all issues in a fix version are in a specific state. I thought this is pretty straight forward as there are even build-in checks for this, but none of them are working.

 

So here is what I did.

I created a test issue SNDBX-2 which has a fixVersion "0.0.1-beta".

2020-09-25 08_27_25-Issue navigator.png

 

Now creating the Automation rule, I use an If-Else-Block and check if all issues in this fix version are matching a JQL checking their state:

2020-09-25 08_17_22-Project automation_1.png

 

In the screenshot this is a Else-Block because I tried to catch the following error but without success, so it doesn't matter at this point:

2020-09-25 08_23_25-Project automation_2.png

As you can see the correct issue (SNDBX-2) is triggering this rule. But at this point the fixVersion is empty. Let's say I put a wrong command into the audit log step.

Then the next thing happening is the build-in check for the version which fails as well.
(The error message just explains that there was a value expected but a ) found)

 

To give you all information: My new If-Block checks if there are no issues at all in the fix version and put some debug stuff into the audit log.

2020-09-25 08_30_43-Project automation_3.png

And I made sure that there are no issues having 0.0.1-beta as "affectsVersion".

 

 

So my question is: What am I missing here? Why does the fixVersion suddenly disappear?

1 answer

1 accepted

0 votes
Answer accepted
Patrick R. September 28, 2020

Okay, I got it working.

 

First mistake: fixVersions results a list so it can't be accessed as I tried in my audit log.
Look here: https://confluence.atlassian.com/automation070/smart-values-1014664656.html

 

Second "mistake": I still don't know why but it seems as if the related issues in fixVersion check can't be run from a rule triggered by a issue change. It seems as if you are able to wait for changes in a version and than you may use this check.

I needed to create a JQL doing a similar check:

2020-09-29 07_46_26-Project automation.png

Suggest an answer

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

Atlassian Community Events