Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do enter JIRA ticket contents dynamically through python?

Annapurna May 6, 2019

Hi,

I am able to create jira ticket with static values in API.

eg: from jira.client import JIRA
def blr_jira():
options = {'server': ' URL  '}
jira = JIRA(options, basic_auth=('id', 'pwd'))
projects = jira.projects()
data = {
'project' : { 'key': 'abc' },
'issuetype' : { 'name' : 'service' },
'summary' : 'test',
'description' :"test",
'components' : [{ "name": "bla bla"}],
'customfield_15132':{'value':'ABC'},
'customfield_15131':{'value':'LOC'},
'customfield_10250':{'value':'LOC'},
'customfield_15700':{'value':'XYZ'},
"reporter": {"name": "BBB"}


}
ticket= jira.create_issue(fields=data)
return ticket

Now i have create ticket by parsing values from other program outputs. how do i proceed.

Please suggest me.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events