Forums

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

Automation | Give score to field and create a field wich is the result of all of them

Ange Lukebadio August 16, 2023

Hello everyone,

I'm trying to set up a Jira automation that will calcultate a score in function of what you choose.

I have five differents fields which are for example :

who provided the information? Marketing (5) , Customer (3) ...

which service is affected by the bug? Marketing (4) , Customer (2)  ...

each answer has its score, if for example I choose marketing for the first question and customer for the second, then I would have a score of 10. Because 5 x 2 = 10.

I managed to find an automation to display a score for a field but not to multiply them between them.

For information I have 5 fields with several possible choices so if I have to write each case it will take me forever.

Thanks for your feedback :)

1 answer

1 accepted

1 vote
Answer accepted
Aaron Geister _Trundl_
Community Champion
August 16, 2023

@Ange Lukebadio 

In automation for Jira you can calculate field data together and have it output to a Text field.
You would need to have this Text custom field available on the issue so when the automation runs it has a place to display the data calculated.

In your automation you will need to use smart values to calculate your data.

Here are a few documents to help you understand the smart values and calculations:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/
https://support.atlassian.com/cloud-automation/docs/examples-of-using-math-expression-smart-values/
https://confluence.atlassian.com/automation/jira-smart-values-math-expressions-993924866.html

I would use a If statement but be aware that there is a limit to how many if statements you can have in one automation.

If I were you I would try to simplify the calculation as much as possible to have a specific amount of needed calculations.

As you stated it could get to be very long.

Cheers,

Aaron

Ange Lukebadio August 17, 2023

Hi Aaron,

Thanks for your quick answer !

I'll check the link you sent me :) and I'll tell you if it works, i've read some documents about smart values before but maybe those one are more explicit. 

Have a good one,

 

Ange

Ange Lukebadio August 21, 2023

Hi Aaron,

So finaly i took the solution to write them down one by one and I asked to chatGPT to do all the possible mixes between all my choices, that was pretty good.

Thanks anyway :)

Like Aaron Geister _Trundl_ likes this
Aaron Geister _Trundl_
Community Champion
August 22, 2023

@Ange Lukebadio 

If this answered your question please mark it as answered. 

I am sure Chatgpt can configure the automation variables. It's a great tool to help out. 

Like Ange Lukebadio likes this
Ange Lukebadio August 23, 2023

already done it ;)

Have a good one @Aaron Geister _Trundl_ 

Like Aaron Geister _Trundl_ likes this
Aaron Geister _Trundl_
Community Champion
August 23, 2023

You two @Ange Lukebadio  Glad you got your answers. We are here to help in future.

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