Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Set Component field through REST API

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": "",

"assignee": {

"name": "shreyaskn"


"priority": {

"name": "Trivial"




Plz help me

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

This syntax works for me,

"components": [{"name":"Component1"}]

I wish they would have included this in the API documentation!

Like # people like this
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

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

200 views 13 14
Read article

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