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 Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

27 views 2 1
Join discussion

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