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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

Hello @Daman Malik 

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

'customfield_11300': {'name':'Development'}

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you