Forums

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

Automation for automatically set organization field

nida ergenç May 22, 2025

Hi community,

I need your guidance about automation,

We want to separate the organization as sales and finance. However, since all users use the same domain, we cannot automatically add them to the relevant organization using the domain.

That’s why i have tried to create automation rule based on Main Section.

For instance; If main section value is finance (sales), organization field shoud be Finance.

But when i tried to run this rule i have encountered this error;image.png

image.png

finance organization ID:3 

{
"fields": {
"customfield_10002": [
{
"id": "3"
}
]
}
}

Note:

  • Jira Cloud
  • Standart Plan
  • Company-Managed Project

1 answer

1 accepted

4 votes
Answer accepted
Manon Soubies-Camy
Community Champion
May 22, 2025

Hi @nida ergenç,

Is there a specific reason why you're using the organization id?

If not, you can simply type the organization name directly when setting the field in the automation action:

automation-organizations.png

Hope this helps!

- Manon

Manon Soubies-Camy
Community Champion
May 22, 2025

Also, I just noticed you’re using a branch in your automation rule. For your use case, using a condition instead would be a better fit. Here’s an example of how you can configure it:

automation-if-else.png

Like nida ergenç likes this
nida ergenç May 22, 2025

Thanks a lot @Manon Soubies-Camy , it works! i have tried to add same user into organization that's why i used organization ID.

Do you have any suggestions about it? If main section is Finance(sales) organization field shoud be Finance and add to same user into Finance organization.

Like Manon Soubies-Camy likes this
Manon Soubies-Camy
Community Champion
May 22, 2025

Sure, you can do this with another condition and action:

  • If main section is Finance
  • Set Organization A
    • If customer is not already in Organization A
    • Then add customer to Organization A
  • Else if main section is Sales
  • Set Organization B
    • If customer is not already in Organization B
    • Then add customer to Organization B

It would look like this:

  • Condition: If customer is not already in Organization

automation-step-1.png

  • Action: Then add customer to Organization

automation-step-2.png

This will work even if the reporter already exists as a customer, it will simply add them to the organization.

Like # people like this
nida ergenç May 22, 2025

Dear @Manon Soubies-Camy ,

I've been struggling in that automation for while,and dont know how to thank you enough!  :) 

 

Like Manon Soubies-Camy likes this
Manon Soubies-Camy
Community Champion
May 22, 2025

Glad it helped! :)

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