Forums

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

How to set "versions" when creating ticket using Python API

Craig Anderson
Contributor
March 8, 2023 edited

I'm attempting to set the "versions" field in a Jira ticket.

I'm using the Python API:

ticket = {
...
ticket['versions'] = [{'name': '1.0.0'}]
}
jira_cilent.create_issue(ticket)

 

I get:

"errors":{"components":"The list contains an invalid value"}

I checked: 1.0.0 is a valid choice.

1 answer

1 accepted

2 votes
Answer accepted
Craig Anderson
Contributor
March 8, 2023

Actually, that is the correct code for setting the multiple choice version.

The problem was something else.

Carlos Garcia Navarro
Community Champion
March 8, 2023

Thanks for adding an answer to clarify! :-)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events