Hi Guys!
I would like to set default values in label type custom field.
If I want to create issue, then for all issue type i would like to get different values in label type custom field.
For example:
First attempt:
def iTypeField = getFieldById(getFieldChanged())
def myLabalCustomField = getFieldByName("MyLabel CField")
if ( iTypeField.getValue() == "Bug" ) {
myLabalCustomField.setFormValue(['bugfixing'])
}
if ( iTypeField.getValue() == "Story" ) {
myLabalCustomField.setFormValue(['master', 'release'])
}
Second attempt:
I tried to use your documentation:
but i failed to do it.
Please help me, and thank you for your recommendation.
Kind regards,
Oliver
Hi @acoliver
I was looking to do the same and landed here from google results.
Checked further and found this bug with the adaptavist -> https://productsupport.adaptavist.com/browse/SRJIRA-1080
So it is not possible to set field default on the label field
Thought of letting you know, in case..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.