I want to set a variable with a specific user account id.
So i can make all my further checks on this variable instead of getting the user every check.
This is handy when copying the automation rule for another user...
You could try the Create Variable action to do that: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-variable
There are some limitations on when / where a value can be set and later used in a rule.
And so if using that action does not help, please post images of your complete rule and the audit log details showing the rule execution. Those will provide context for the community to offer suggestions. Thanks!
Kind regards,
Bill
Yes i know that (how to create variable).
But i want to put in in a User/Account ID into this variable.
How can i do that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Maurice Stassen ,
You might want to use user smart values as explained here: Convert usernames to account IDs
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So this is valid?
{{AccountTemp}} = 1234567890
(assuming 1234567890 is a valid accountid within my jira environment)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you need to use the account ID through a defined variable named AccountTemp
, you can use the account ID value by referencing {{AccountTemp}}
in the rest of the automation, within the variable's scope, of course.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The example you show will correctly set the variable, and then it can usually be referenced later in the rule as:
{{AccountIDToCheck}}
Please note I added "usually be referenced"...Some rule syntax cannot use variables, or it is challenging to do so.
This is why I asked to see your entire automation rule, for context. For example:
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.