Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sum select list values in Automation rule

Hello,

I want to setup a rule that every time a custom field changes, it will add the value of that field and another field and put the result in a third field.

The two values to add come from a custom simple select list with numerical values.

In the automation wizard I added an action that updates my third field with the sum of the two fields as such:

{{issue.customfield_13900}}+ {{issue.customfield_13901}}

The rule executes correctly but I'm not seeing the sum displayed in my field.

I'm guessing I need to add something extra to retrieve the selected value from my custom field lists?

Any help is much appreciated.

Thanks!

1 answer

1 accepted

1 vote
Answer accepted
John Funk Community Leader Oct 28, 2021

Hi Mauricio,

I suspect that it is not being added because the custom field is not a number type field for your select list. 

Thanks for your answer John.

Is there a way to work with select lists and do the operation I mentioned?
I want to keep the field with a list of fixed values to avoid user error.

Or is there a way to make the options of the list be a number type? I don't see an option to modify this within the custom field options.

John Funk Community Leader Oct 28, 2021

You should be able to set a variable for the value in the dropdown and then use the variable field in your calculation. 

https://support.atlassian.com/jira-software-cloud/docs/automation-actions/#Automationactions-Createvariable

Thanks John, that worked!

Like John Funk likes this
John Funk Community Leader Nov 06, 2021

Great! Glad to hear it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

37 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you