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

create issue through API

Dear Sir,

 

Create BUG issue through API but error is coming that Fixversion Screen Not set.

Bug screen Fixversion filed available and mandatory.

 

There is way to short the issue.

 

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Sandesh Shetty Community Leader Jan 11, 2021

@vashim shekh 

Please find the doc. link to create issue throgh api https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post 

you can set the Fixversion field while creating issue for. eg like this

"fixVersions": [
{
"id": "10001"
}

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."

    }

}

Sandesh Shetty Community Leader Jan 11, 2021

@vashim shekh 

Please check create issue screen of bug issue type. whether fixVersions filed is available or not on that screen? also check "TL - Origination Bouquet" value is available in project Releases.

Like # people like this

we have checked already all components is there.

Sudarshan TS Community Leader Jan 11, 2021

Hello @vashim shekh 

Are you trying to Create a Bug? or a Defect.?
sometimes a Defect is of issue type sub-task and not parent, your approach is correct.!

Note:
Hope you are aware of the policies of your organization when providing client specific URL: https://jira.devops.idfcbank.com/rest/api/2/issue
(though this cannot be accessed by every Atlassian community member)

If it is a site-specific query, I would suggest directly contact the Atlassian support
(it is a better practice)

@Sudarshan TS @Sandesh Shetty 

 

thanks to you sandesh and sudarshan also , we have fixed now there is permission issue we found.

 

Thanks.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
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