Forums

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

cloud script postfunction - accessing multi-select value for compare

Mordechai Cikk
Contributor
May 29, 2018

Hi All.

I have been wrestling with accessing the selected values of a multi-select custom field.

This is in a CLOUD script postfunction.

The basic use case is:

If "A" is one of the cf_multi selected options, then cf_stringA = "Yes".

If "B" is one of the cf_multi selected options, then cf_stringB = "Yes".

etc...

I have not been successful at getting to the values in cf_multi.

For example, when trying cfValues , I get variable [cfValues] i undeclared

cfValues = issue.fields["customfield_16427"]?.value

 

When adding the def, I get no such property on "issue"

def cfValues = issue.fields["customfield_16427"]?.value

Unsuccessfully tried other methods as well but did not find the fit for cloud postfunction

 

A bit of cloud script postfunction example code that correctly accesses  the multi-select options selected for comparison would be a big help and GREATLY apprecieated. 

Thanks very much

Mordechai

0 answers

Suggest an answer

Log in or Sign up to answer