ServiceRocket JIRA Cloud for Salesforce package: how to map fields when creating JIRA record via API

Brian Shea
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2024

Hi there,
We are using the ServiceRocket "Jira Cloud for Salesforce" installed package (version 4.43) in Salesforce. We are building an Apex Trigger that will create a JIRA record when a Salesforce userstory__c record is created. I see in the ServiceRocket documentation that we can use the following Apex method to create the JIRA record:

JCFS.API.createJiraIssue('1000', '10002'); 

 

The two parameters in the method above are: JIRA Project ID and JIRA Issue Type ID. 

Here’s a link to the documentation:

https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/470754259/Configuring+automatic+Jira+issue+creation+from+Salesforce

 

I have one question: is there any documentation that explains how we can populate fields on the JIRA record in addition to JIRA Project ID and JIRA Issue Type ID? I don't see anything in the documentation that explains how we can use the createJIRAIssue() method to populate additional fields (e.g. description, priority, etc).

 

Thank you!

1 answer

0 votes
Noel_Siagian_Appfire May 15, 2024

Hi Brian,

Welcome to Atlassian Community!

It appears that you have raised the same request on our Appfire portal, but I will also add the reply here which maybe helpful to others.

----

Regarding your question, when utilizing the apex trigger to create a Jira issue from Salesforce automatically, the connector populates the Jira fields according to the mapping you have configured. More information about the field mapping can be found here:
- Configuring Entity Mappings and Field Mappings 

If you wish to populate the Jira description field, you'll need to map it with a corresponding Salesforce field. Subsequently, ensure that the Salesforce field contains a value that will be sent to the description field when creating a Jira ticket.

Thanks, let us know if you have any question :)

Regards,
Immanuel
Appfire Support

Suggest an answer

Log in or Sign up to answer