
Behaviours bot experiment results
Now available in ScriptRunner for Jira Cloud.

What is it?
The Behaviours bot is an AI-powered assistant designed to help you create and refine Behaviours for ScriptRunner for Jira Cloud.
Simply describe what you need in plain English, and the bot will generate the appropriate script for you. It can also review existing scripts for errors, enhance your current logic, and help you test your Behaviours—making the entire scripting process faster and easier.

Very helpful and makes it easier to create behaviours.
“So awesome to have a bot to assist with creating behaviors as I am definitely not an expert in the scripting/coding world! makes life 1000x easier!
Its the greatest AI tool I have ever used! Expressions and Behaviours are on point and super quick to get!
Experiment results
from Karl Dickman, Senior Product Manager, ScriptRunner for Jira Cloud
Well this one was a resounding success! Our Leap testers scored the Behaviours Bot a 4.9/5 so the product team knew we were onto something with this one. Users, both savvy coders and less experienced ones, have praised the helpfulness of the tool.
This is an example of generative AI being used in the best way: to help reduce the learning curve so anyone can benefit from tools like ScriptRunner.
Why build it?
from Jamie Echlin, Principal Engineer
The Behaviours bot represents a complete rethink in the way we ask users to write behaviour scripts. We try to bring everything you need to your fingertips. You'll often need custom field and option IDs, so we make them visible right there in the previewer.
We've designed this in the way we'd want it if we were the user… for example, we tried to make the feedback loop as tight as possible. When you change the code, it will run immediately, and you will see the results in the feedback panel, plus visual cues if it succeeded (or failed).
And then, obviously… there is AI. Large Language Models seem to be an excellent fit for some ScriptRunner tasks, as they tend to be small, self-contained problem spaces. For example, the API for behaviours in Cloud is only a few handfuls of methods. Of course, sometimes it produces incorrect code, but, I still remain impressed when it produces a script that works right off the bat.
I originally wrote Behaviours for Jira (server) back in 2009: that is to say, I know how to write Behaviours scripts. But I'd struggle to do something like "Set the description field to a bullet list of the 5 most recently created issues assigned to me. Each bullet should be the issue key and summary". However, this tool handles that task with aplomb (usually).
For me this is the one of the areas of potential for generative AI: it can take the drudgery out of these everyday tasks.
Ready to create Behaviours faster than ever?
What is ScriptRunner Leap?
A new brand from the brains that brought you ScriptRunner, ScriptRunner Leap is here to shake things up. It's a playground for innovation and exploration, a space where we can push the boundaries of what’s possible together.

