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.
@Jack Brickey If your organizations have spaces in them it will show those as errors in the automation and not create the label. Is the fix to add a _ in the Organization Name Value?
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.
That worked for me, but it seems like we should be able to append something in the smart value script to do that, but I wouldn't even know how to structure that. So, I just updated all Orgs to have _ added to spaces.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would think you could use JSON but would need to play with it. Going back to Bill's response on the edit action, here is where I would start
{{varOrganization.name.replace(" ", "-")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.