You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We have a tier 1 support project which we use as initial triage for client and other reported issues. Once the ticket has been vetted, it is transitioned into an 'escalated to...' status, which triggers a SR script to generate a new linked issue in the appropriate development project, as identified by a select list custom field.
We recently purchased Automation Pro, and I'd really love to replace the script with an automation rule, which is easier to manage. To that end:
1) Is it possible to use a smart value to set the project in which a 'create issue' action generates an issue?
2) Is it possible to do any type of string manipulation on a smart value? Right now this custom field contains a string with the name and project key of the destination project - I can alter this if necessary, but I'd love to not need to. I can get into the context if needed, but I cannot use a project picker field here.
Posting this for posterity - while you cannot use a smart value to solve this problem, you can use the JSON\additional fields option to do this. In my case, I had to do some string manipulation to get the key out:
{code}
{
"fields": {
"project": {
"key": "{{issue.L3 Escalation Project.value.substringAfter(\"(\").remove(\")\")}}"
}
}
}
{code}
Hi Haddon,
Great to see you found our docs on text functions!
Unfortunately though I don't think you'll be able to implement number 1 currently. We don't support smart-values yet in the project and issue type fields. We've got an issue to track this already at https://codebarrel.atlassian.net/browse/AUT-948
We've got quite a few higher priority items in our backlog at the moment so it will be a while before we can get to this, but we'll let you know when we get a chance to work on this.
Cheers,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Five years later and still no support for smart values in the Project field. :(
A support agent did create https://jira.atlassian.com/browse/AUTO-839 for me two weeks ago however for "Support smart values for Project field of Create Issue action".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use smart value like this:
{{issue.ProjectPickerCustomFiled.ID}}
Where ProjectPickerCustomFiled is the name of your custom field that is an issue picker.
.Id .Key .Name are all field that you can take from a project picker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Benoit
This works fine with the ID
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For anyone still in need of this, I have the larger solution mapped out here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the exact same requirement as OP but could not find an RFE to add smart value support for the Project field. I will obviously have to send a web request to do this but I will create a new Suggestion post for smart value support also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For anyone who stumbles across this old thread via search (like I did) I submitted this suggestion: https://community.atlassian.com/t5/Automation-discussions/Support-smart-values-for-Project-field-of-Create-Issue-action/m-p/2450406
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I fished my wish for question 2 (its amazing what you find if you look) so I guess the actual question then would be "if I can use a smart value to set a project, will it take the key or the name?"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.