Forums

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

Behaviour script is not working on transition screen

Sreenivasaraju P
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.
May 29, 2025

Hi,

 

We wrote small script using behaviour which is working on create view but not working on transition view, ever after enabling New work transition experience. 

 

Any help on this, do we need to do any other changes


const firstField = getFieldById('customfield_17808');

const secondField = getFieldById('customfield_13445');

const changedField = getChangeField();

switch (changedField.getName()) {

  case 'Field Name':

      switch (changedField.getValue().value) {

      case 'ABC':

secondField.setOptionsVisibility(["14761","14764"], false);

secondField.setOptionsVisibility(["17624","17625"], true);

        break;

case 'XYZ':

secondField.setOptionsVisibility(["17624","17625"], false);

secondField.setOptionsVisibility(["14761","14764"], true);

        break;

      

    }

    break;

}

 
Thank you in advance. 

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Sreenivasaraju P
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.
June 3, 2025

Issue resolved. I was trying on business project. 

 

As per adaptavist team, behaviour script won't work on transition view for business project. It was on software project. 

0 votes
Trudy Claspill
Community Champion
May 29, 2025

Hello @Sreenivasaraju P 

Can you explain in words what you expect the Behaviour to do, and what you are observing when you apply it to the transition screen?

Sreenivasaraju P
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.
May 29, 2025

On change of first field value, in the second field different options should visible.

 

In the first field if we select ABC , then in the second field options 1 & 2 should list and if we select XYX in the first field, then in the second field options 3 & 4 should list.

 

Please let me know if you need any further details.  

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events