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

Jira create Defect Fix version issue through API

Hi,

 

We are trying to raise defects in Jira using Jira rest apis. Please find below details regarding the api we are using.

 

URL : https://jira.devops.idfcbank.com/rest/api/2/issue

 

Input: 

{"fields":

{

"summary":"Invalid bug raised from api",

"issuetype":{"name":"Bug"},

"project":{"key":"APIF"},

"description":"this bug was raised from jira rest api to test qrace integration",

"customfield_10404":{"value" : "Medium"},

"customfield_10403":{"value" : "Development" },

"fixVersions":[{"name":"TL - Origination Bouquet" }]

 },

"update":{

    "issuelinks":[

        {

          "add":{

              "type":{

                  "name":"Relates"

                },

                "inwardIssue":{

                    "key":"APIF-1138"

                }

            }

        }

    ]}

}

 

We are not able to generate defect using api. We are getting following error :

{

    "errorMessages": [],

    "errors": {

        "fixVersions": "Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown."

    }

}

 

We have checked project configuration for fixed versions field, which looks properly configured. We are not sure what is the issue. Please raise ticket with Jira support team to resolve the issue .

 

2 answers

Having a similar problem. The Fix Versions field is definetely on the Create screen, but the API is still throwing the error 

"fixVersions": "Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown."

0 votes
Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 11, 2021

Hi @vashim shekh 

As long as fixVersion isn't mandatory in your Jira instance, try leaving that field out and see if you're able to create a defect.

Alternatively, what that message is telling you is that the field needs to appear on your Create screen. Every field that you have in your JSON for creating an issue needs to show on the Create screen within Jira.

Suggest an answer

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

Atlassian Community Events