Getting "Field 'stage' cannot be set. It is not on the appropriate screen, or unknown." error

Daman Malik February 6, 2020

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

1 answer

1 accepted

0 votes
Answer accepted
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 13, 2020

Hello @Daman Malik 

Can you try to use the customfield_ID instead of the name field

'customfield_11300': {'name':'Development'}
Daman Malik February 13, 2020

@Mohamed Benziane : Thankyou, it worked.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events