Forums

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

KCF-Pro Default Value on Issue Picker

AndrewB
Contributor
November 24, 2015

How can I specify a default value? I'm using KCF - Autocomplete Multiple custom field type w/ option type of Issue. When I attempt to specify a default value, I get an error message:

 

Expecting object found: "DO-2096"

 

I've attempted to use: Issue key, Issue ID, Issue summary

 

How can I specify an object when setting a default value? I don't see a way for this to use an SIL script.

1 answer

1 accepted

2 votes
Answer accepted
Alexandra Topoloaga
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 24, 2015

Hi Andrew,


The options are of KPOption type, so they must contain a label and a value. Try to set the field to something like this:

{"value":"10001","label":""}

The 10001 value from above is the issue id.

The default value should get automatically converted to something like this:

{"option":{"label":"","value":"10001"},"meta":{"shortLabel":"TST-2","iconUrl":"/images/icons/issuetypes/bug.png","longLabel":"TST-2 - tw","labelOverride":"TST-2","href":"http://localhost:6260/browse/TST-2","tooltip":"tw"}}

 

Hope this helps,

Alexandra

AndrewB
Contributor
November 25, 2015

Worked like a charm - I tried looking for this in the docs first. Thank you.

Alexandra Topoloaga
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 26, 2015

You're right, this wasn't contained in the documentation. I have just created a new page regarding it: https://confluence.kepler-rominfo.com/display/KCFPRO/Example+5%3A+Setting+default+values+for+KCF+Pro+fields Thank you for your suggestion. :)

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events