Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to copy Organizations into Labels?

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?

2022-07-29 12_23_47.png

1 answer

1 accepted

3 votes
Answer accepted
Jack Brickey Community Leader Jul 29, 2022

Can you try this?


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

@Jack Brickey 
I got it. In the end I only had to use  


 in the Set Value field of the label.

Thanks so much for this hint!

@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?

Jack Brickey Community Leader Jul 31, 2022

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.

Jack Brickey Community Leader Jul 31, 2022

@Bill Sheboy , do you have any thoughts on the topic of capturing all Organizations here? Maybe you have a different approach altogether?

@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:

2022-08-01 15_02_58.png

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:

  • trigger: issue linked
  • condition: on the issue type
  • advanced branch: with smart value: {{issue.destinationissue.Organizations}} and variable name: varOrganization
    • action: edit issue, to add a Label using the smart value {{}}

Kind regards,

Like # people like this

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

Like # people like this

Suggest an answer

Log in or Sign up to answer
Site Admin

Atlassian Community Events