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
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
Hello hive mind!
I've got 0 JSON skills and suspect this is part of what's blocking me :)...
We'd like to do the following:
1. New ticket is created
2. Populate a multi-select custom field with a value matching the project (e.g. if the issue is created in a project called NET, select NET from the field, if the project is DIGI, select DIGI etc)
Currently I'm struggling to work out:
1. How can we read which project the ticket is part of so that we can define this to be the value that's copied down (it doesn't appear to be a default field we can copy a value from)
2. How can I populate the target multi-select field - it doesn't appear to be available. I've found some community posts that indicate the fix is to use the More Options JSON but I can't find any training for coding novices on what to actually put in it.
Hello @Kit Friend
Thanks for writing to us.
I would suggest you to use if/else condition block along with "Issue fields condition".
Trigger: Issue Created
Condition/Action: if -> project equals NET then -> edit issue(choose custom field from drop down ) and for value, select appropriate value from dropdown out of all the multi-select options you have.
else if -> project equals DIGI then -> edit issue(choose custom field from drop down) and select value from dropdown out of all the multi-select options you have.
No need to use advanced json part.
Something like this:
Hope this helps you.
Almost there I think. I thought this would work:
and I can successfully write in the Project Key as a label using a similar technique. But when trying to use it to set the content of customfield_10054 I get:
Error editing issues DEMO-42 (Field 'customfield_10054' cannot appear in both 'fields' and 'update')
Let me try it once more :)
Say there is custom field "brand" which is multi-select field type. So it's possible values are exactly as all project keys.
Then I can create a global rule where I choose trigger "Issue created" and then edit issue action where I set field "brand" as "project.issue.key".
And above json will do just the same, just set the value of "brand" same as project key, independent of project where issue was created(provided list values are exactly the same and all project keys are covered).
I think this is what exactly you are looking for.
Please correct me if I got you wrong.