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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I was able to take the info from the Organizations field in customer support tickets and put it into a read-only text field. (see screenshot)
But I'd prefer to have each organization of that ticket to be added as a separate Label.
Unfortunately the Organization field doesn't seem to be available in the Automation to choose from as an input field for Labels. (see screenshot)
Is there maybe a way to achieve this with custom JSON code?
Can you try this?
{{issue.Organizations.first.name}}
it worked for me. You will will want to test if the label is simply added and does not overwrite existing labels.
Hi @Jack Brickey ,
first of all thanks for your response! I tried it out but unfortunately don't get it to work. But this could also be because I didn't describe my problem properly:
I want to set the labels not on the original customer-support ticket, but only when someone links a Jira development ticket to this support ticket.
So somehow I need to define the automation in the Jira dev project to run whenever someone links it to a support ticket, and then pick the Organization from the destination (support) ticket and put it into the labels of the dev ticket.
If you know how to achieve this, could you make me a screenshot of that part of the edit-issue-step in the automation?
Thanks so much, Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jack Brickey
I got it. In the end I only had to use
{{destinationissue.Organizations.first.name}}
in the Set Value field of the label.
Thanks so much for this hint!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jack Brickey Well, I ran into one more problem here: It's only taking the first Organization into the labels. But in case there are multiple organizations assigned, those aren't adding any labels.
Any idea on this one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Christian Happel ,
I was trying that same thing but could not get it working. Please post the full rule here for others.
Here is what I came up with...
The process is to link the JSM to the JSW from the JSW issue. This could be reversed I think.
I used the Create variable action to store the Organization into a smartvalue. I then referenced the variable in my action to add the label.
Regarding the issue of multiple organizations I'm not sure TBH. Will need to play with it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy , do you have any thoughts on the topic of capturing all Organizations here? Maybe you have a different approach altogether?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jack Brickey
I'm doing it in the JSW project and pulling the data from the JSM ticket.
I didn't use any variable. See here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Christian Happel and @Jack Brickey
There are multiple values in the Organizations field and using first will only get one of them.
One approach, using Christian's rule shown, is to use an advanced branch on smart values and add the labels, one by one. So your branch could be:
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.
Thanks @Bill Sheboy and @Jack Brickey for your fast responses. I just wanted to let you know that I read them but probably won't have time to try them this week anymore and then will be on vacation for two weeks. I'll definitely get back to you if it worked.
Cheers, Christian
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.