issue.getLabel() not working when creating a sciprted subtask

Philippe Aubin
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.
March 5, 2015

Trying to show label in the description on a scripted subtask.

the 2 way i've tried are as follow :

 

  1. def cf_1 = customFieldManager.getCustomFieldObjectByName('Category')
    val_1 = Category: + issue.getCustomFieldValue(cf_1) + issue.getLabels()
    issue.setDescription(val_1)
  2. def cf_1 = customFieldManager.getCustomFieldObjectByName('Category')
    val_1 = Category: + issue.getCustomFieldValue(cf_1) 
    val_lb = issue.getLabels()
    issue.setDescription(val_1 + val_lb)

 

1 answer

0 votes
Philippe Aubin
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.
April 23, 2015

Anyone ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events