In our situation, the user is not allowed to set the priority in the portal via the Jira Priority field, but is given a different custom e field single select list where a subset of the Jira priorities are provided.
On issue creation, I am doing an automation rule to copy the user set value from the custom field to the Jira Priority field.
In the edit issue action, unless I'm mistaken I can choose the custom field to copy the value from, but I only get 'Copy priority from current issue'. I chosen Priority as the field to set, but instructing the action from where to copy the value from i'm not seeing.
Do I need to do the value change via JSON in the More Options JSON text are? If so, could you please give me a clue of how to do this because my JSON did not work (invalid JSON error), which currently is:
{"fields":
{"Priority": "{{triggerissue.fields.customfield__10259.id}}"
}
}
the following copied the priority name
{{triggerIssue.Priority.name}}
Hello @AldoCauchiSavona
You don't need to use JSON for this. Simply start typing in the smart value for the source field.
After typing in the smart value you need to click on the space below the field where it says Smart value '{{ to get it to actually keep the smart value you entered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get no option to set the field as a text, what i get is like this, or as Set where I m given a list of priorities to choose from.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to click on the ... and choose SET.
That will change the display to something like this, showing an actual Priority value.
Then click in the field where the priority value (i.e. Highest) is shown and the full list of values will display.
Then start typing the smart value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, Many thanks @Trudy Claspill, I now managed to get the smart value in the Set value. However getting this error now:
{{triggerIssue.fields.customfield_10259}}
{{triggerIssue.fields.customfield_10259.value}}
{{triggerIssue.fields.customfield_10259.id}}
(The priority selected is invalid. (priority))
{{triggerIssue.fields.customfield_10259.name}}
(Specify the Priority (id or name) in the string format (priority))
What is the correct smart value to get the String or selected priority from a single-select list, please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should be able to get the value of the field with
{{triggerIssue.<name of field>}}
i.e.
{{triggerIssue.Story points}}
Use the Log action to print out to the Rule audit log what is returned by the various smart values you tried.
If the value is not an exact match for one of the display values or id of the options for the Priority field then you will need to use an If/Else Condition to look at the value of the your custom field and then set the value of the Priority field to the correct corresponding value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it possible to covnert the selected option to a string, because the error 'IDS-55 (Specify the Priority (id or name) in the string format (priority))' indicates to me that the value is not being given as a string. I onlt found th string to number command.
Inside a comment, {{triggerIssue.fields.customfield_123}} and {{triggerIssue.fields.customfield_123.value}} returned 'High', so do log action.
Sorry for the spam messages
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure of the solution for trying to directly copy the value from your custom field to the Priority field.
A solution that does work is to use an If/Else Condition block.
In this solution you check the value of your custom field, and then use an Edit Issue action to set the Priority field to the corresponding value.
After the initial If block you would add Else-if blocks for each of the remain possible values for your custom field and setting the Priority field to match.
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.