You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
We are migrating bugs from Bugzilla to Jira,for that
We are trying to set Component while creatinng a bug in Jira through REST API
Below is my Json request in groovy(Plugins is the component name i want to set which already exist i tried to give its id also by getting meta data):
json.fields() {
project {
key issueAttr.projectKey
}
summary issueAttr.summary
description issueAttr.description
issuetype {
name issueAttr.issueType
}
customfield_10102 issueAttr.bugzillaUrl
assignee {
name issueAttr.assignee
}
priority {
name issueAttr.priority
}
components: [{
name "Plugins"
}]
}
when i print json object it did not contain component field
{
"fields": {
"project": {
"key": "WAT"
},
"summary": "Bug 18728: Identify new API calls (XML-RPC) in Nessus v5.0",
"description": "Identify new API calls (XML-RPC) in Nessus v5.0",
"issuetype": {
"name": "Bug"
},
"customfield_10102": "http://bugs.redseal.net/show_bug.cgi?id=18728",
"assignee": {
"name": "shreyaskn"
},
"priority": {
"name": "Trivial"
}
}
}
Plz help me
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try with the following code
"components": [{ "id": "10000" }]
check here lot of example are here
https://answers.atlassian.com/questions/34115/set-issue-priority-and-component-with-rest-api
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.