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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Scriptrunner Behaviours Edited

When defining a field behaviour, is it designed to be able to combine use of conditions built with the UI and a script? Or does it have to be one or the other?

I'm just looking at reducing the size of my script by defining some conditions and then using the script to polish the behaviour.

Thanks

---

Edit: Testing suggests it doesn't work.

2 answers

You probably want to provide more concise details on your use case. I have hard time to understand your question. 😂 

Hi Stewie,

To answer your question :

When defining a field behaviour, is it designed to be able to combine use of conditions built with the UI and a script? Or does it have to be one or the other?

Yes, you can add scripts and condition that ties to a particular field in Behaviour. For more details on this you can go through our documentation link below :
https://scriptrunner.adaptavist.com/6.17.0/jira/tutorials/behaviours-tutorial.html 

I'm just looking at reducing the size of my script by defining some conditions and then using the script to polish the behaviour.

If you go into the Behaviour configuration page you should be able to click the "add a new condition" link to add a condition as you can see from the screenshot below :
behaviour_condition.png

From there you can add several new conditions. You can also add server-side script alongside those conditions. You should be able to see the "add server-side script" link on the same page as well.

I am not sure if I answered your question.

If it does not answer your question. It would be great if you could provide an example of what you would like to achieve (e.g. the behavior script and configuration that you have) and I can assist you further from there

Suggest an answer

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

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

125 views 0 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