Timo van der Kamp
Software developer
It is now possible to link Jira issues to a customer in Atlas CRM with our new API. In this blog I will guide you through the steps that you will need to take to do this with JQL.
I want to link some Jira issues to my customer Avisi, more specifically all issues from the Jira project “PFA”. Doing this one by one can be really time consuming and therefore I would like to do this with the API.
The following Atlas CRM API endpoint can be used to link Jira issues to a customer.
First of we need to fill the {entity-id} path-parameter with the ID of Avisi. There are several ways to obtain the ID of a company, contact or sale in Atlas CRM:
1. Retrieve it from the app location
2. Retrieve it from the API with a filter
Now that we have the ID for Avisi, we only need to pass a list of issue-ids to the Atlas CRM API to make the links. But how do we get these issue-ids?
We can use the Jira Cloud Rest API to fetch issues with JQL. First, I have made the JQL query in Jira to verify the result.
Everything looks good to me, so I am going to use this JQL query in the Jira API to search for issues. You can use this endpoint to search for issues with JQL. More information.
In the result from the Jira API you can find the ID’s of the Jira issues that you need.
Now that we have got the entity-id path-parameter and the issue-ids, we can make the API call to actually link these together.
Try the Atlas CRM API out yourself and check our API documentation for all integration possibilities. If you need help configuring your integration, please reach out to our support desk.