Behaviours Plugin Bug? add two behaviours on same field will overwrite previous one?

my jira version is jira 4.4.1.

for example,i add two behaviours on the same filed "resolution":sw,st

1 i add "When Resolve Issue" condition on sw,and add script to 'sw'

log.debut("\nsw not read only\n")

2 and add "When Close Issue,Reopen Issue" condition on st,and add script to 'st'

FormField resolutionField=getFieldById("resolution")
log.debug("\nst read only---\n")

then no matter i resolve,close or reopen an issue,the field "resolution" is always displayed "read only"

when i delete the 'sw' script.the behaviour is normal.resolving an issue ,"resolution" will not display read only.closing or reopening an issue will make "resolution" read only

it's so strange! as if "sw" and "st" script are all executed one by one in order.later behaviour will overwrite former behaviour. because "st" is later than "sw" in order,so "sw" might present the final result.

1 answer

0 vote
Mizan Community Champion Jun 06, 2012

I did not get why you need two scripts on same field , If you feel its a bug you can raise it on select JBHV project .

You will have to put your logic in a single script for now .


i write two script on same field because i want to dispaly different thing when on diffent action screens.

i find the Behaviour Plugin can support workflow action condition.

so i separate them according to different workflow action.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,305 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot