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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,454
Community Members
 
Community Events
184
Community Groups

I'm trying to create an issue of type "Bug" with custom field called "customfield_10040"

Saranraj Gandhi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 08, 2023

I'm trying to create an issue of type "Bug" with a custom field called "customfield_10040" but I'm getting an error 

error message: {"errorMessages":[],"errors":{"customfield_10040":"Specify a valid 'id' or 'name' for Severity"}

 

Here is a code which I tried:

fields = {
"project": project_name,
"issuetype": issue_type,
"customfield_10040": [{"id":11938}],
"priority": priority_type,
"summary": summary,
"description": description,
}
print(fields)
new_issue = jira.create_issue(fields=fields)
while looking into the previously created issues via Jira UI my custom field values are looks like the below,
"customfield_10040": {
"value": "Severity-2",
"id": "11938"
}
But I'm getting the same error while using the correct id as mentioned in the customfield_10040.

1 answer

1 accepted

0 votes
Answer accepted
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 08, 2023

Hi @Saranraj Gandhi 

Welcome to the community.

Can you try this format?

  • "customfield_10040": {"id": "11938"},
Saranraj Gandhi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 08, 2023

After trying with the above format I'm getting this error, @Tansu Akdeniz kindly help me to resolve this.

 

{"errorMessages":["I-nautix environment Affected, Severity are marked as mandatory fields."],"errors":{}}

 

fields = {
"project": project_name,
"issuetype": issue_type,
"customfield_10040":{"id":"11938"},
"priority": priority_type,
"summary": summary,
"description": description,
}
print(fields)
new_issue = jira.create_issue(fields=fields)
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 08, 2023

Since there are other fields required in fields, you have to send that information too in order to create an issue.

Suggest an answer

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

Atlassian Community Events