Can you set a fix version and component in an issue collector?

Steven Pask October 3, 2017

Hi, I'm currently looking to edit an issue collector script so it includes a preset fix version and component. 

However when I create a new issue using the collector the fields stay blank.

fieldValues : {
				  summary : 'Overtype this with a short title'
				, description : 'Overtype this with an expanded description...'

				// hidden field value
				, customfield_10200: [ "DS-685" ]
				, priority : '2'
				, labels : 'Caspian_UAT'
				//
				// TRYING TO GET THESE TWO VALUES BELOW - TO AUTOMATICALLY ASSIGN BUT HAVING NO LUCK
				, components : [ 'DL: UAT' ]
				, fixversions: [ 'Data Lake MVP' ]
		    }


});</script>

You'll see above part of the script and the two fields I'm trying to add. Do I need to use a field ID? I couldn't seem to find one for either field.

I'm also not a developer so go easy ;) Thanks team!

1 answer

1 vote
Justin Warwick October 19, 2018

I found and tested successfully an answer for Component, possibly the same principal applies to fixversion. See this answer, and make sure to note the follow up detail from @Thierry Michel:

Pre-set Component for Issue Collectors?

Also, this other question talks a little about multi-value for Components:

Set fieldValues in JIRA Issue Collectors

Suggest an answer

Log in or Sign up to answer