Dear all,
Please I need your help to set a global automation, I´m several days trying but I cannot find a solution.
I have two projects: P1 and P2
Whenever a P1 ticket is linked to a P2 ticket, the name/text in "Organization" field in P1 must be automatically added as "Label" field in P2
Thanks
Hi @adrian_vargas ,
As already mentioned here, we might need a bit more information to help you with this.
But making some assumptions, this might help you. Let's assume you are using Jira Service Management and the field you refer to is the Organizations field which represents the Customer's organization.
If that is the case, you will need to use a Smart Value to extract the Name of the Organization. In addition, you will need to remove any spaces from the Organization name, since labels cannot contain any spaces.
Following these requirements, this will be your smart value:
{{issue.Organizations.name.replace(" ","_")}}
So in your automation you will have something like this:
Hope that helps.
Have a nice day,
Rik
Without seeing your automation, the following should work:
trigger on 'Work item linked'
add first condition to be either field based on jql based: project = P1
add second condition for linked work items of all link types that match jql: project = P2
add THEN step: create variable (orgname). specify smartfield corresponding to your Organization field
add branch for Linked work items - all link types
add THEN step into the branch: Edit work items field. Select 'Labels' field with SET condition and in Additional Fields specify the code below
{
"update": {
"labels": [
{ "add": "{{orgname}}" }
]
}
}
good luck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not think something like this can be achieved using automation. Extracting a field name and use as a label. But am curious to see if something like this can be done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adrian - Welcome to the Atlassian Community!
Please post a screenshot of your rule and let us know exactly where the rule is failing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @adrian_vargas
In addition to the information @John Funk requested, please tell us the types of projects/spaces for P1 and P2. Are they Software, Service, or Business projects/spaces? Are they Company Managed or Team Managed?
You can get that information from the Type column on the page that lists all the projects/spaces.
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.