Answer by Stéphane Thillay on 06 September 2023
Hi Dave,
In the outgoing Salesforce to Jira script, we’re using:
def queryUser = httpClient.get("/services/data/v54.0/query/?q=SELECT+Name+FROM+User+WHERE+Id=%27${entity.OwnerId}%27")
This instruction does a query through the Salesforce API to get detail of a record (User object) based on an Id (here the OwnerId of the Case being synchronized with Jira).
From that example you may adapt to get details of the Contact.
Regards,
Stéphane