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

Behaviours won't update custom field from plugin

I have a custom field using this plugin:

The structure of the field value is:

'customfield_15000' => {
'id' => '19106',
'self' => '',
'value' => 'Yellow'

When I try to update the field value using Behaviours, the field is set to null. Example:

def rp = getFieldByName("Risk Profile")
def rv = rp.getFormValue()

I have also tried with:




In all cases, Risk Profile is set to null. In fact, just clicking the tab on which the Risk Profile form field sits sets it to blank, even without changing the field that should trigger the update of Risk Profile.

Is there a better way to set a form field or a value when the form field is non-standard?

Alternately, is there such a thing as an Edit post-function where I could set the value more programmatically?

2 answers

1 accepted

0 votes
Answer accepted

Turns out I wasn't setting the field to the correct set of values. Once I figured that out, Behaviours worked as expected.

0 votes

I would recommend you find a different way to achieve your requirement. That add-on's documentation and support pages don't appear to be available anymore (dead links).

This doesn't bode well for the likelihood of the developer creating new versions if/when a new version of Jira breaks the compatibility.

How to set values programmatically for that custom field would depend on the app having some API that are available to Scriptrunner and documented (hence why I was looking for documentation pages).

For the value to be "settable" in behaviour would depend on how the custom field is implemented and could require Adaptavist/Scriptrunner to be enhanced to support that custom field type. And that's not likely to happen on an app that appears dead and unsupported.

Suggest an answer

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

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

147 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you