Cascading Select - Is it possible to pull just the values when parsing data?

David Gregg November 13, 2011

I am using the "Cascading select" custom field, but when trying to parse the data to another field (summary) it pulls more than just the values. This is the string that appears in teh sumary field...

CustomFieldParams: Class / Model. Params: {null=[Monitor], 1=[17" TFT]}.

Is it possible to pull just the vlaues Monitor + 17" TFT from this string?

(I am using JIRA 4.2)

Thanks

2 answers

0 votes
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2011

To get the first component (class) use: value.getFirstValueForKey(null)

To get the second (model): value.getFirstValueForKey("1")

0 votes
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2011

To get the first component (class) use: value.getFirstValueForKey(null)

To get the second (model): value.getFirstValueForKey("1")

David Gregg November 13, 2011

Thanks Dieter, but how do I use that in the context of "Copy parsed text to a selected custom field."

Is it %{10096.getFirstValueForKey("1")} where 10096 is the custom field id? or am I barking up the worng tree?

Thanks

Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2011

Hmmm, didn't know that you use this plugin. My answer is better suited for a groovy workflow post function.

Could that also be an option for you?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events