Forums

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

Field from issue is not appear on behaviour

David Pleşu
Contributor
March 23, 2023
const nField = getFieldById("idX");
const nrField = getFieldById("idY");

logger.info('Value : '+ nField.getValue().name);

if(nField.getValue().name == 'Yes'){
    nrField.setVisible(true);
    logger.info('true');
} else {
    nrField.setVisible(false);
    logger.info('false');
}
Hello, i have a problem, in jira, when i am trying to do a simple behaviour, idX, is not appear, and highlighted in red. but the idX is a simple custom field. Screenshot_1.pngScreenshot_2.png

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2023

Hi @David Pleşu ,

custom field id is "customfield_XXXXXX" and not just the ID. Please use that approach in order to fix your issue.

Fabio

David Pleşu
Contributor
March 30, 2023

thank you

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 30, 2023

you're welcome @David Pleşu 

Suggest an answer

Log in or Sign up to answer