JIRA REST for polling data from CRM to JIRA?

Is it possible for JIRA to make rest pol requests to CRM to get CRM's certain data into JIRA Cloud (for Project)?

I have seen ways to get data from JIRA to CRM, but how is it going to work in other direction?



1 answer

IMO, all you want is posting your data to JIRA as JIRA ticket/Issue.
This is possible.
you can use jira-python library (python-specific).
By that you can get your JIRA object  and create_issue().
Example snippet :

#login to JIRA first

options = {'server': 'https://jira-jira.atlassian.net'}
username = 'username'
password ='password'

 jira_obj = JIRA(options, basic_auth=(username, password)) 

Now  with this jira_obj you can create issues (by passing your CRM data)

issue_dict = {
'project': {'key': 'PROJECTkey'},
'summary': "Summary for your Issue",
'description': "description",
'issuetype': {'name': "Task" },
new_issue = jira_obj.create_issue(fields=issue_dict)

OR alternatively you can use JIRA rest API's 

Okay, good to know.

So, "by passing your CRM data" could be controlled through JIRA? Since, our CRM is not allowed to make posting to JIRA. JIRA has to do the polling and getting data from CRM (by plugin or any other valid method). 

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published yesterday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

37 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot