When trying to create a story with Python using JIRA REST API, I am getting below error. Can someone please help here?
Code
....
import pandas as pd
from jira import JIRA
jira = JIRA(
basic_auth=("username", "password"),
options={
'server': "https://jira.xyz.com"
}
)
issue_dict = {
'project': {'key': 'SE'},
'summary': 'New issue from jira-python',
'description': 'Look into this one',
'issuetype': {'name': 'Story'},
'stage':{'name':'Development'}
}
new_issue = jira.create_issue(fields=issue_dict)
...
Stage field contains dropdown values.
Error message: JIRAError: JiraError HTTP 400 url: https://jira.cvent.com/rest/api/2/issue text: Field 'stage' cannot be set. It is not on the appropriate screen, or unknown.
Important: 1) I am the admin of the project, so I believe will not face authentication problem
2) 'Stage' field is already added under Create Story Screen
Hello @Daman Malik
Can you try to use the customfield_ID instead of the name field
'customfield_11300': {'name':'Development'}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.