Forums

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

Submit portal form using Python

coke rags
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2023

Hello all,

I'm looking for a way to submit a portal form using Python. For example I have a form at https://xxxxxxx.atlassian.net/servicedesk/customer/portal/1/group/1/create/1

I can authenticate using email:token with or without the jira module and also create issues. However I want to create issues by submitting the form on the portal. Is there a way to do this using python?

 

from jira import JIRA

jira_connection = JIRA(basic_auth=('email@email.com', 'tokenxxxxxxxxx'), server="https://myinstance.atlassian.net")

issue_dict = {
'project': {'key': 'TEST'},
'summary': 'Testing script',
'description': 'Testing script',
'issuetype': {'name': 'Service Request'},
}

new_issue = jira_connection.create_issue(fields=issue_dict)
print(new_issue)

 

1 answer

0 votes
Hauke Bruno Wollentin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2023

I'm not aware of a possibility to interact with that user forms from Python (or the Jira SDK), but the form doesn't make anything other than creating a Jira issue internally.

So if you just set all fields that are available in your form + the service request type you should be good to go with your Python script.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events