Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,830
Community Members
 
Community Events
184
Community Groups

ScriptRunner Behaviour not firing

Paul Stallworth
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jul 27, 2018

I am trying to get a very simple Behaviour working in my production instance.  I have it working in development, but when I tried in production nothing is happening.  The code I am working with is below, and I've attached a screenshot as well.  This behaviour is mapped to all issue types of a software project.  When I click the Create button and choose the project, I see nothing in the logs where I am expecting to see the "Inside Behaviour Initialiser" message.

 

import static com.atlassian.jira.issue.IssueFieldConstants.*
import org.apache.log4j.Logger
import org.apache.log4j.Level
def log = Logger.getLogger("com.paul.CreateIssue")
log.setLevel(Level.DEBUG)
log.debug("Inside Behaviour Initialiser");
getFieldById(SUMMARY).setFormValue("Default Starting Summary")

 image.png

2 answers

1 accepted

1 vote
Answer accepted
Paul Stallworth
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jul 31, 2018

Turns out Alexey was partially right.  There is a module of the ScriptRunner plugin, Behaviour issue assets, that was disabled for some reason on my production instance, but not development.  Enabling that module fixed the issue.

 

Mathew Monteiro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 17, 2023

Where did you find that module which you enabled ? 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 18, 2023

Admin -> manage apps -> find SR in the list and look for the (small) + for "expand modules" and you'll get a tree-like list of modules.

SR has a lot of modules, and sometimes, when Jira is loading all the modules for all the apps as it starts up, it can struggle to load them all at the same time.  If it fails for some reason (even just simple load), it can leave modules disabled. 

It's not a serious failure (a significant problem would stop it starting up completely), but it might be worth a quick look at giving it a bit more time to load the apps at startup if you find it happens again on the next restart.

1 vote
Alexey Matveev
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.
Jul 27, 2018

Hello,

According to your screenshot this behaviour is disabled. You should enable the Use Validator plugin option.

Paul Stallworth
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jul 30, 2018

Hi,

Where is it disabled?  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events