The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Scriptrunner behaviour example for service desk doesn't work

Deleted user
August 8, 2018

Tried the example here but it doesn't work at all. When i change the priority value in the customer portal, the label next to he description field doesn't change.

Tried with JIRA version 7.9 and 7.11 and SD version 3.12 and 3.14 and my scriptrunner is the latest verions 5.4.12

ANything i am missing??

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Roland Holban (Adaptavist)
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.
August 9, 2018

Is your behaviour mapped to "Use Service Desk mapping"?

Is your behaviour script set on the Priority field?

Deleted user
August 9, 2018

Yes. Made sure this is mapped correctly.

Deleted user
August 9, 2018

SDBehav.png

Roland Holban (Adaptavist)
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.
August 9, 2018

Your script needs to be on the Priority field. In your screenshot, click "Add server-side script" and move your script there then delete the Initialiser. It will work then. 

Scripts in the initiliaser only run one time when the screen is loaded. Scripts on a specific field run everytime that fields values changes.

Deleted user
August 9, 2018

SDBehave.png

Roland Holban (Adaptavist)
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.
August 9, 2018

See my above comment.

Deleted user
August 9, 2018

Roland, thank you very much for the clarification. It seems i haven't read the doc thoroughly and carefully. 

It works perfectly now.

Cheers

TAGS
AUG Leaders

Atlassian Community Events