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
Community Members
Community Events
Community Groups

How to automate creation of behaviours?


Hi there. I found a really useful article about the creation of scriptrunner script plugin. But there is no example of how to create behaviours automatically via a code.

Could someone provide an example or at least point me to the documentation where it's described?


1 answer

1 accepted

1 vote
Answer accepted


There is currently no public Java API for the programmatic creation of Behaviours. However, there is a REST API: it is primarily intended to help users migrate their existing behaviours from one instance to another, but it also allows for the creation of new behaviours from scratch.

Joanna Choules, Adaptavist Product Support

Thanks a lot, Joanna!

I'll try to use REST API and will ask more questions if any if you don't mind.

I'm glad I could help! Yes, please do feel free to ask more questions here, or over at our support portal.

@Joanna ChoulesI use ScriptRunner version Could you please clarify is it supports POSTing of behaviours via REST API? When I try to do that I get this error message: "The requested URL returned error: 500".

It was an issue with XML formatting. Symbols that can be replaced with  HTML symbols like quotes and new lines must be replaced.

I started to use a code placed in files instead of directly written in UI.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

174 views 1 6
Read article

Atlassian Community Events