Forums

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

Having trouble with accessing fields with scripts

CJ_Marchand
Contributor
May 11, 2023

Hi everyone.  

I am writing some code to access fields but it is not working. 

First off this code is in the Initializer section of a behavior.

In the code below at line 14 I am trying to get the value of the sys "Work Item Type" field but it is returning null.  I know at this point no selection has been made but I would think it would return the default value.  

On line 20 I am trying to get access to the current issue to get a hook into the custom fields.

It is also failing.

 

Code.PNG

Any help would be appreciated. 

Thanks,

C.J. 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events