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 Jira issue from Confluence- Component stops issue from being sent

Hello, 

 

I have created a form in Confluence that creates a Jira issue. I am trying to include coding for 'components' to assign specific individuals within JIRA. However, when I include the code, the issue is no longer sent.

FYI- The field that assigns components in JIRA is a drop-down menu.

This is the code without 'components' (within IFFTT integration rules Macro):

{
   "fields": {
      "project":
      { 
         "key": "CPDG"
      },
      "summary"           : "[entry.fldproject.escapeJSON]",
	  "description"       : "Project Description:[entry.fldproject.escapeJSON]\nClarity ID:[entry.ParentProject]\nParent Project ID:[entry.ParentID]\nStart Date:[entry.StartDate]\nFinish Date:[entry.finishdate]\nPDG:[entry.PDG]\nPDG1:[entry.PDG1]\nLocation: [entry.Location]\nPhase: [entry.ProjectPhase]\nProject Goal[entry.ProjectGoal]\n\n",
	  "issuetype"         : {  "name": "Request" },
      "priority"          : { "id": "5" }, 
  }
}

and this is the code with components:

{
   "fields": {
      "project":
      { 
         "key": "CPDG"
      },
      "summary"           : "[entry.fldproject.escapeJSON]",
	  "components"		  : "[entry.PDG1]",
	  "description"       : "Project Description:[entry.fldproject.escapeJSON]\nClarity ID:[entry.ParentProject]\nParent Project ID:[entry.ParentID]\nStart Date:[entry.StartDate]\nFinish Date:[entry.finishdate]\nPDG:[entry.PDG]\nPDG1:[entry.PDG1]\nLocation: [entry.Location]\nPhase: [entry.ProjectPhase]\nProject Goal[entry.ProjectGoal]\n\n",
	  "issuetype"         : {  "name": "Request" },
      "priority"          : { "id": "5" }, 
  }
}

 Is there something i am not doing correctly? Why does the ticket not get submitted to JIRA when I add 'components' to the code?

 

Thank you!

Sam

1 answer

Hi

The format that components field expects is an array of name/value pairs - see for example this answer https://community.atlassian.com/t5/Answers-Developer-Questions/Set-Component-field-through-REST-API/qaq-p/542960 

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

101 views 0 3
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