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

2 answers

1 accepted

1 vote
Answer accepted
Yogesh Mude
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 Champions.
May 21, 2018

Hi @Yen Pham,

By default, you can update the System fields like Resolution, priority etc..but if you want to update the Custome field then you need to use Jira Suite Utility add-on.

1 vote
Tarun Sapra
Community Champion
May 21, 2018

Hello @Yen Pham

You have to use Apps from Marketplace in order to update post-functions via workflow transitions.

https://marketplace.atlassian.com/apps/5048/jsu-suite-utilities-for-jira?hosting=server&tab=overview

It's a paid plugin.

Suggest an answer

Log in or Sign up to answer