Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Programmatic Creation Of Jira Service Desk Form

Joseph Ojo April 18, 2024

I currently have a code that submit a service desk form using python, but it is not very efficient as i am passing cookie with the requests. Initially, these cookie takes around 10 days to expire but now it is expiring after 24 hours.

The manual flow, there is a Jira portal that has a form which when filled, it creates a jira issue ticket with the form details attached. Which endpoint can i use to achieve this 

endpoint I am calling that does this currently.

    create_issue = f"https://{server_url}.atlassian.net/gateway/api/proforma/cloudid/{cloud_id}/api/2/createissue"
    response = requests.put(create_issue, headers=headers, json=data)


data = {"templateFormId":x,
            "projectId":xxxx,
            "issueTypeId":"xxxx",
            "requestTypeId":"xxx",
            "customfield_xxxx":'xxxxxxx',
        "answers":{
            "1":{"text": xxxxxxx},
            "3":{"text":null},
            "5":{"text":"","choices":[xxx]},
            "34":{"text": xxxx},
            "35":{"text": xxx } 
             .
             .
             .
}
       
how can i achieve this

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events