Problem: I have multiple custom fields in a company-managed project that I am looking to:
Context:
The 2 custom fields that I have are both drop downs and contain these values:
Intended End Goal Solution:
What I would like to do, using JIRA's automation if possible, is translate those qualitative values to quantitative values.
Does anyone know how to solve the problem above with the context that I have given via JIRA automation and smart values?
Hello @Frank
I have not used it myself, but I have seen other posts similar to this where the suggestion was to use the Lookup Table action
Hi @Frank
Adding to Trudy's answer: once you have stored your conversions in the Lookup Tables, you could use those in math operations to calculate the result: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So the automation would look something like this? Having a hard time figuring out how this should break out:
So basically, you would:
Also, I have 10 different custom fields that I would want to do this for, so I'm thinking I should have one automation per custom field given that the max values that you can hold in a lookup table is only 20 and my 10 custom fields have 35 options between them all. Thoughts on that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You haven't quite got it.
1. You would create a separate Lookup Table for each custom field. Each table would have a mapping of the values for just one of your custom fields.
2. Each Lookup Table you create gets a name. Let us say you name the T-shirt Size table "tshirtSize". Then to get the value for one of the keys in that table you would use the smart value:
{{tshirtSize.get(issue.T-shirt Size.name)}}
You could use that in an Edit action to update the value of the T-shirt Estimation field. To add the retrieved value to the value already in the T-shirt Estimation field you would use (from the Math Expressions Smart Values documentation)
{{issue.T-shirt Estimation.plus(tshirtSize.get(issue.T-shirt Size.name))}}
I haven't actually created my own custom fields and tried this out, but that is how I think you would do it, based on the documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just did some experimenting with this.
If your custom field (i.e. T-shirt Size) is a selection list then you need to use issue.T-shirt Size.value to get the text value displayed in the field.
If the number field you are trying to set has no value in it yet, not even 0, then this doesn't work.
{{issue.T-shirt Estimation.plus(tshirtSize.get(issue.T-shirt Size.value))}}
It seems that a number field must have some numeric value in it in order for the plus function to work.
I used just Log actions to print values into the log rather than actually updating the issue.
For your use case substitute:
Single Select List >> T-shirt Size
SK Only Number Field >> T-shirt Estimation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.