Forums

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

Adaptavist Behaviours

Jean-Christophe Gonzales September 12, 2023

Hello,

Working on the Jira migration from server to cloud, I proceed right now with the Behaviours app, and to be honest, it is not as straightforward than the server version ...so far.

I spent hours trying first to put in place a new Behaviours entry, nothing seems to happen, nothing seems to be triggered. As log file are no longer available with Jira Cloud, the only way to detect whether a behaviour is triggered is via the Logs option displayed in Admin / Scriptrunner. Am I right ?

Some messages are displayed, but never at the time the behaviour is supposed to be triggered, and with no effect on fields values which are supposed to be altered.

Timestamp: 2023-09-11T19:44:20.532Z
CorrelationId: b47b1e67-0f5a-45aa-9eb5-a20dff639f73
Field UUID: 7a0209fc-a3b3-4550-90a9-acafef11046e
Field Name: Labels
Event: On Change
Message: false
Level: info

So right now I am stucked with no clue on the script I wanted to put in place, based on one of the video available : https://youtu.be/-Jt9BIlGcq4?si=s6v6szZyYjNbApBR

 

 

Eventually I created another behaviours entry, with minimum setup, Project + issue type + activate, and regarding the script, I just copy & paste one of the sample provided :

const theDescription = getFieldById("description")
theDescription.setName("The description name");
const theValue = "the value is " + theDescription.getValue();
logger.info(theValue);

 

And again, nothing happens, nothing in the log

I am sure I missed something, but what ?

 

Of course, any help appreciated

jcg

1 answer

1 accepted

0 votes
Answer accepted
Jean-Christophe Gonzales September 13, 2023

Now fixed ; mainly because the behaviours logs displays triggered events asynchroneously (and sometime it takes time), but also because the script was saved with a syntax error, so the event was not triggered at all, and obviously no chance to get it in the behaviour log.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events