Forums

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

Script verification

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.
January 29, 2015

Can anyone tell me why the ''create subtask'' built in script won't trigger with this ''aditional action'' script: 

 

 

issue.summary = issue.getSummary() + ' :Benchmark Offer' 
def cf_1 = customFieldManager.getCustomFieldObjectByName('Sponsor')
val_1 = '|*Sponsor*|' + issue.getCustomFieldValue(cf_1) 
def cf_2 = customFieldManager.getCustomFieldObjectByName('Admin Panel')
val_2 = '|*Admin Panel*|' + issue.getCustomFieldValue(cf_2) 
def cf_3 = customFieldManager.getCustomFieldObjectByName('Product')
val_3 = '|*Product*|' + issue.getCustomFieldValue(cf_3) 
def cf_4 = customFieldManager.getCustomFieldObjectByName('Category')
val_4 = '|*Category*|' + issue.getCustomFieldValue(cf_4) 
def cf_5 = customFieldManager.getCustomFieldObjectByName('Niches')
val_5 = '|*Niches*|' + issue.getCustomFieldValue(cf_5) 
def cf_6 = customFieldManager.getCustomFieldObjectByName('Program Id')
val_6 = '|*Program Id*|' + issue.getCustomFieldValue(cf_6) 
def cf_7 = customFieldManager.getCustomFieldObjectByName('Tour Id')
val_7 = '|*Tour Id*|' + issue.getCustomFieldValue(cf_7) 
def cf_8 = customFieldManager.getCustomFieldObjectByName('Country')
val_8 = '|*Allowed Countries*|' + issue.getCustomFieldValue(cf_8) 
def cf_9 = customFieldManager.getCustomFieldObjectByName('Payin Type')
val_9 = '|*Payin Type*|' + issue.getCustomFieldValue(cf_9) 
def cf_10 = customFieldManager.getCustomFieldObjectByName('Payin Rate')
val_10 = '|*Payin Rate*|' + issue.getCustomFieldValue(cf_10) 
val_11 = '|*Offer*|' + issue.getSummary() 
val_ls = System.getProperty("line.separator")
issue.setDescription(val_1 + val_ls + val_2  + val_ls + val_3 + val_ls + val_4 + val_ls + val_5 + val_ls + val_6 + val_ls + val_7 + val_ls + val_8 + val_ls + val_9 + val_ls + val_10 + val_ls + val_11)

Thank you and have a good one !

Phil

4 answers

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.
January 30, 2015

image2015-1-30 9:4:50.png

JamieA
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.
January 30, 2015

In that screenshot you are missing the "i" from issue, on line 1, but that doesn't tally with the error you reported

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.
January 30, 2015

Yup, fixed the ''i'' still no creation. Please help me Jamie Kenoby , you are my holy hope !

0 votes
JamieA
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.
January 29, 2015

can you post a screenshot of the configuration pls

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.
January 29, 2015

Error! No such property: issue for class: Script83 groovy.lang.MissingPropertyException: No such property: issue for class: Script83 at Script83.run(Script83.groovy:1)

0 votes
JamieA
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.
January 29, 2015

What do the logs say?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events