The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

validator for custom field not working

Sander Groenen
March 12, 2020

we are evaluating script runner plugin. But we have all kinds of issues. One specific issue is i want a validator that checks a customfield value but it seems like the value is not retrieved (null). And by the way in script console i cannot check the output because either it returns some kind of impersonation oauth error or issue not found where i can retrieve it by using postman rest api

the validtor rule is for example : issue.customfield_10749.plainText== 'test' which returns false when tested against issue. However when doing issue.customfield_10749.plainText only it returns null in the view results output. Where for example description.plainText (jira default field)does return te text entered

in curl request i have to do api/2/issue/V2-2560?expand=customfield_010749 

(with expand) to get value of the field otherwise its null so im guessing this could be the problem. Also i don't understand why i have to use the plainText property, what i could see/find is that just the customfield_xxx should return the string but this gives a wrong operator error. 

any tips are appreciated

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events