Auto create issues in Jira after Salesforce case creation

  • 1
  • Question
  • Updated 1 year ago
Team,

I did follow all the steps(or at least I think I do) mentioned in configuring Salesforce documentation in Salesforce JIRA Server connector. I did create a Salesforce case but it did not create a issue in the JIRA proect even after specifying all the necessary details in the REST API class. 

Any ideas what's the first things to check ? 
Photo of Rohit

Rohit

  • 4 Posts
  • 0 Reply Likes

Posted 1 year ago

  • 1
Photo of Kevin Lew

Kevin Lew, Official Rep

  • 50 Posts
  • 2 Reply Likes
Hello Rohit,

Please ensure your JIRA should be available on Internet or at least exposed to Salesforce.com (hence the white-list). 

You need to configure Public IP or a Public DNS in order to make JIRA publicly available in order to use the REST API we have provided in documentation. 

Regards,
Kevin
(Edited)
Photo of Kevin Lew

Kevin Lew, Official Rep

  • 50 Posts
  • 2 Reply Likes
Hello Rohit,

 REST API doesn't work but manually clicking button will create JIRA issue
Are you referring to APEX Create button or Endpoint Create Button?

Can you please provide us a screenshot of your Apex Class Parent code?
  1. Log in to Salesforce.com.
  2. Go to Setup > App Setup > Develop > Apex Classes > JIRA 
Can you also please ensure you have added your JIRA URL in Remote Site URL?
  1. Log in to Salesforce.com.
  2. Go to Your Name > Setup > Administration Setup > Security Controls > Remote Site Settings.
Regards,
Kevin
(Edited)
Photo of Rohit

Rohit

  • 4 Posts
  • 0 Reply Likes
Kevin,

Good morning. I was referring to Endpoint create button. Nevermind, I figured why it is working, cause I was logged in to JIRA in the same browser so it is authenticating. Guess so ? 

Also, we have 15 Support groups for which cases are created everyday but out of these 15, we only need 6 group's tickets to sync to JIRA upon creation, is that possible ? 
Photo of Kevin Lew

Kevin Lew, Official Rep

  • 50 Posts
  • 2 Reply Likes
Hello Rohit,

Yes, Endpoint create button requires authentication to function and will not need to configure Public IP or a Public DNS.

Also, we have 15 Support groups for which cases are created everyday but out of these 15, we only need 6 group's tickets to sync to JIRA upon creation, is that possible ? 
Can you please elaborate further and perhaps provide a few screenshots explaining your use case?

Regards,
Kevin
Photo of Rohit

Rohit

  • 4 Posts
  • 0 Reply Likes
Kevin,

Screenshot's do not exist as it is not something that we use today but instead we want to get there. My question was more around the REST API Sync that creates issues in JIRA upon case creation in Salesforce as your code runs AfterInsert. 

I would like to know if you can control invoking services to send these cases to JIRA based on few more parameters like "if support group = XXX,YYY or ZZZ" only then invoke methods to send to JIRA. 

Is that possible? or will every case created in Salesforce go to JIRA and cannot be controlled ? 
Photo of Kevin Lew

Kevin Lew, Official Rep

  • 50 Posts
  • 2 Reply Likes
Hello Rohit,

That might be possible with a customized REST API code. However, we do not support nor recommend any customization to the codes other than what is provided in the documentations. 

Regards,
Kevin