Forums

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

Jira Automation error in rule

Valerie Blondel
Contributor
March 7, 2023

Hi,

Beginner here, sorry to ask.

Here is my request : whenever a change of value is detected in any of the fields "Direction Indice de risque total, Ressources humaines Indice de risque total... " I would like automation to re-calucate the sum, that should appear in field "Grand total des indices de risques".

Automation 4.png

Here is my automation so far :

Automation 1.pngAutomatin 2.pngAutomation 3.png

I have this error :

 

Automation error.png

Would any one be so kind to tell me what I am doing wrong ?

 

Thanks a lot,

Valérie

 

 

 

 

3 answers

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
March 8, 2023
Valerie Blondel
Contributor
March 8, 2023

Hi Trudy,

Sorry for this !

I could not find this first post.

Still learning how to work with a community too.

Apologies for the inconvenience caused.

2 votes
Aron Gombas _Midori_
Community Champion
March 7, 2023

Having a quick look, the first item in the expression starts with

{{issue

...but others start with

 {{lissue

There is an extra 'l'?! Is that intentional?

Valerie Blondel
Contributor
March 8, 2023

Hi there,

Thanks for taking the time to answer me.

It was not intentionnal, and corrected in the meanwhile, but not working :-(.

Kind regards,

Valérie

Aron Gombas _Midori_
Community Champion
March 9, 2023

What does that mean "not working"? If you look for help, you may want to provide more details about how it behaves after the correction.

Valerie Blondel
Contributor
March 9, 2023

Hi Aron, 

Thanks for having a look.

Here is what I tried so far :

 

Corrected the string as follows ; 

{{#=}} {{issue."Ressources humaines Indice de risque total".value}} + {{issue."Direction Indice de risque total".value}} + {{issue."IT Indice de risque total".value}} + {{issue."Gestion de projet Indice de risque total".value}} + {{issue."Commercial Indice de risque total".value}} + {{issue."Customer Solutions Indice de risque total".value}} + {{issue."Production Indice de risque total".value}} + {{issue."ENV et BAT Indice de risque total".value}} + {{issue."Logistique Indice de risque total".value}} + {{issue."Qualité Indice de risque total".value}} {{/}}

 

Aaron 1.png

In another chat, someone also suggested to start with a shorter string.

I used {{#=}} {{issue."Direction Indice de risque total".value}} + {{issue."Logistique Indice de risque total".value}} {{/}}

Aaron 2.png

Last thing I tried was to remove the " " :

Aaron 3.png

Anything else I could try according to you?  Any help is more than welcome.

Thanks again,

Valérie

 

0 votes
Trudy Claspill
Community Champion
March 9, 2023

Hello @Valerie Blondel 

Are these custom fields all Number type fields?

For Number type fields this works for me

{{#=}}{{issue.<display name for field>}} + {{issue.<display name for field>}}{{/}}

I did not put quotes around the field names. I did not use the .value attribute.

Have you tried replacing the display name of the fields with their field ID; i.e. customfield_#####

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