Forums

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

error while creating an issue using Python script

Sumit Saini June 11, 2020

Hi,

I am using below python script to create an issue.

new_issue = jira.create_issue(project='IN', summary ='test', description ='test1',  issuetype={'name': 'Bug'})

I am getting below error. Please help how to resolve it.

text: Squad is required.
	
	response headers = {'Server': 'AtlassianProxy/1.15.8.1', 'Cache-Control': 'no-cache, no-store, no-transform', 'Content-Type': 'application/json;charset=UTF-8', 'Strict-Transport-Security': 'max-age=315360000; includeSubDomains; preload', 'Date': 'Fri, 12 Jun 2020 06:06:05 GMT', 'ATL-TraceId': '09513638145b80a6', 'X-AREQUESTID': '65eda4a3-fe31-428a-b66c-e68a6e85bddc', 'X-AACCOUNTID': '5dee9b8004f61d0ec50f4123', 'X-XSS-Protection': '1; mode=block', 'Transfer-Encoding': 'chunked', 'Timing-Allow-Origin': '*', 'X-Content-Type-Options': 'nosniff', 'Micros-Issuer': 'micros/edge-authenticator', 'Connection': 'close', 'Expect-CT': 'report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/global-proxy", enforce, max-age=86400'}
	response text = {"errorMessages":[],"errors":{"customfield_10914":"Squad is required."}}

 

1 answer

1 accepted

0 votes
Answer accepted
Derek Fields (RightStar)
Community Champion
June 12, 2020

You have a field named "Squad" on your Issue that is a required field. You will need to submit a value for that field in order to create the issue.

Sumit Saini June 12, 2020

Thank you for the reply. I added Squad, now I am getting below error.

text: Field 'Squad' cannot be set. It is not on the appropriate screen, or unknown.
 
 response headers = {'Server': 'AtlassianProxy/1.15.8.1', 'Cache-Control': 'no-cache, no-store, no-transform', 'Content-Type': 'application/json;charset=UTF-8', 'Strict-Transport-Security': 'max-age=315360000; includeSubDomains; preload', 'Date': 'Fri, 12 Jun 2020 16:20:12 GMT', 'ATL-TraceId': '1d4082ffea59cbab', 'X-AREQUESTID': 'a15c7be5-01a2-4af5-b37b-5206bd58270f', 'X-AACCOUNTID': '5dee9b8004f61d0ec50f4123', 'X-XSS-Protection': '1; mode=block', 'Transfer-Encoding': 'chunked', 'Timing-Allow-Origin': '*', 'X-Content-Type-Options': 'nosniff', 'Micros-Issuer': 'micros/edge-authenticator', 'Connection': 'close', 'Expect-CT': 'report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/global-proxy", enforce, max-age=86400'}
 response text = {"errorMessages":[],"errors":{"Squad":"Field 'Squad' cannot be set. It is not on the appropriate screen, or unknown."}}
Derek Fields (RightStar)
Community Champion
June 12, 2020

My guess is that Squad is defined as required in the Field Configuration for the project. You need to add it to the Create screen for the Bug issue type

Sumit Saini June 12, 2020

Ok thank you.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events