Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Automatic Jira issue creation from Salesforce using Apex trigger

Chandramouli Dasari
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!
March 20, 2025

Hi,

I am trying to create a Jira issue(epic) from a Salesforce opportunity record automatically using the apex trigger using the below method.

JCFS.API.createJiraIssue('******', '10000');

I don't see any errors but the Jira issue is NOT being created. 

I have completed the connection and binding accurately and I am able to create a Jira issue manually from Salesforce record page.

I am not sure what the issue is so reaching out for help.

Thanks in advance !

1 answer

0 votes
Mercy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 10, 2025

The `JCFS.API.createJiraIssue()` call depends on the Jira Cloud for Salesforce managed package and requires that the Apex trigger executes in a user context authorized to make Jira API calls. When you can create issues manually but not through a trigger, it usually means the trigger runs in system context without the connected user’s OAuth credentials. The integration user must be reauthorized under Jira Setup → Connections → Manage Connections in Salesforce, and the Apex execution context must have permission to call the JCFS API.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events