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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.