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."}}
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.
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."}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.