How can I update companie filed with JSON?

Nikolai Filonchik July 31, 2017

Hi, everybody!

I'm using Atlas CRM and Project Automation for JIRA and try to set up a company to a newly created with Project Automation for JIRA issue throught More options->Additional fields with

"fields": {
        "company": "{{issue.company}}"
    }

 

but that just doesn't work

 

1 answer

0 votes
Gert-Jan van de Streek July 31, 2017

Atlas CRM currently doesn't officially support setting the company entity property via automation. It should however just work. You have to set the company id and name together:

{
"id": 17597001901513,
"name": "Atlas CRM"
}

The 'Entity Properties' add-on from Atlassian Labs is very helpful in debugging.

Note that when linking multiple contacts/companies, this is a list:

{
"id": [
17592187005661,
17592187009103,
17592187005651,
17592187005666
],
"name": [
"Mitchel Kuijpers",
"Mats Stijlaart",
"Gert-Jan van de Streek [Avisi]",
"Maarten Testuser"
]
}

Also, note that the fields are named relations_contact and relations_company. The fields are aliased contact and company.

Suggest an answer

Log in or Sign up to answer