Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to push single value from confiForms into multivalue Jira Issue field?

Shakir Islam March 30, 2019

Hi all,

I created a ConfiForms survey were the results are to be used to create a Jira issue using the IFTTT integration rules.

The area I am having trouble with right now is on my ConfiForm page, I have a single selection dropdown field. I am trying to push that value onto a field in the jira page that is a multi-selection drop down field (labelled component).

I added a 'No Format' field in the IFTTT integration rules, executing the code below. 

{
    "fields": {
       "project":
       { 
          "key": "XXX"
       },
       "summary": "Test summary from confiForm",
       "description": "Test description from confiForm",
	   "reporter": {"name":"Shakir Islam"},
	   "assignee": {"name": "Shakir Islam"},
       "issuetype": {"name": "Engagement Request"},
       "component": {"key": "BIP"}
   }
}

 

This is the error I am getting: 

  • com.atlassian.sal.api.net.ResponseException: Error communicating with JIRA, {"errorMessages":[],"errors":{"component":"Field 'component' cannot be set. It is not on the appropriate screen, or unknown."}} Used JSON: '{ "fields": { "project": { "key": "XXX" }, "summary": "Test summary from confiForm", "description": "Test description from confiForm", "reporter": {"name":"Shakir Islam"}, "assignee": {"name": "Shakir Islam"}, "issuetype": {"name": "Engagement Request"}, "component": {"key": "BIP"} } }' Request to url = 'https://jira.aexp.com/jira/rest/api/latest/issue/'

 

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
March 30, 2019

The error reported from your Jira server tells you that the field "component", you are attempting to set cannot be set, because it is not settable through the "Create Issue" form / screen

What is missing on the form cannot be set with REST APIs.

Add the "component" field on the "Create Issue" screen and you shall be able to set it with REST APIs

Shakir Islam March 30, 2019

Hi Alex,

The field 'component' is present on the jira 'Create Issue' form and still produces this error. 

Alex Medved _ConfiForms_
Community Champion
March 30, 2019

Take a look at the following question and accepted answer to see the format expected by the "components" field - https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-set-components-in-Jira-REST-API-5-x-while-creating-a/qaq-p/529155

Shakir Islam March 30, 2019

THANKS! It worked. 

Suggest an answer

Log in or Sign up to answer