We have the app fire connector for jira and salesforce (https://marketplace.atlassian.com/apps/1214214/connector-for-salesforce-jira)
I need to automatically create a jira ticket with certain information from salesforce, when the opportunity = closed-won.
Anybody have some ideas on how to do this? I am trying to include some information from the opportunity and then have it appear in the description field in the newly created jira ticket
> I need to automatically create a jira ticket with certain information from salesforce, when the opportunity = closed-won.
For that you need an APEX trigger.
An example(if you dont need the after update, remove it)
trigger OpportunityClosedWonJira on Opportunity (after insert , after update) {
for (Opportunity c : Trigger.new) {
if (Trigger.isUpdate && Trigger.isAfter) {
if(c.StageName == 'Closed Won'){
JCFS.API.createJiraIssuewithDefaultPostAction('10015', '10002');
}
}
}
}
10015 its the jira project id
10002 its the jira work item key
> I am trying to include some information from the opportunity and then have it appear in the description field in the newly created jira ticket
Here you need the mapping. What do you have mapped to the Jira description?
You can map the Opportunity name for example and the Jira description will have that information.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.