Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Help to configure a global automation

adrian_vargas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2025

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

4 answers

0 votes
Rik de Valk
Community Champion
November 24, 2025

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: 

  • Trigger: Work Item Linked
  • Condition 1: Work Item Fields Condition
    • Field: Project
    • Condition: equals
    • Value: Project 1
    • Condition IF/ELSE Block
  • Branch FOR EACH
    • Linked work items
  • Then: Action Edit issue
    • Fields: labels
    • Seleect 'Add / Remove' labels
    • In the Add, use the smart value {{issue.Organizations.name.replace(" ","_")}}

Hope that helps. 

Have a nice day, 

Rik 

 

0 votes
Artem Taranenko
Contributor
November 24, 2025

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 

0 votes
Varsha Joshi
Community Champion
November 24, 2025

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. 

0 votes
John Funk
Community Champion
November 24, 2025

Hi Adrian - Welcome to the Atlassian Community!

Please post a screenshot of your rule and let us know exactly where the rule is failing. 

Trudy Claspill
Community Champion
November 24, 2025

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.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events