Pulling Organization fields into ticket's custom field
AnsweredHi,
We found that it is impossible to map the organization field with Jira customer's company field.
Therefore, we've been trying to update a custom ticket field (String) with the Client's Org. field.
Following the instructions on here (Pulling custom Org fields into ticket) here is what we did:
- URL: https://<your domain>/api/v2/tickets/{{5555}}.json
- Method: put
- Comment type: JSON
- Add authentication
Test Target > Json
{"ticket":
{"custom_fields":
[{"id":360015214480,
"value":"{{ticket.organization.name}}"}]
}}
Results: OK, but the ticket's field id=360015214480 value for ticket 555 becomes "ticket.organization.name" (as text) rather than the information of the ticket's organization name (for example, Microsoft).
Changing the Extension URL back to
- https://<your domain>/api/v2/tickets/{{ticket.id}}.json
and use the Json as a trigger that calls for this extension, we can see that the extension is successfully running, but the ticket value is not empty.
Any idea? Any help? Any easy way to get the organization name?
Thanks.
-
Hi Yaniv,
Sorry for the delay. Can you confirm if you tried using it in the Trigger's action as shown below? I tried replicating this in our test account and it works fine:
-
Hi @...
Thank you for your help!
For the trigger, I used 'Ticket is Created' and nothing happened. But when I changed it to 'Status changed to Pending' as you suggested, it worked!
:)
Post is closed for comments.
2 Comments