JIRA REST for polling data from CRM to JIRA?

Jesse Friman September 28, 2016

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?

 

thanks

1 answer

0 votes
Ankush September 28, 2016

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 

Jesse Friman September 28, 2016

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