• Community
  • Questions
  • [Behaviours Plugin] Jira keeps behaviour rules when creating a new issue when viewing another issue ...

[Behaviours Plugin] Jira keeps behaviour rules when creating a new issue when viewing another issue ...


I'm using Behaviours plugin, and I have a "bug" :

When I'm viewing an issue, its behaviours are correctly applied.

But when I click on "Create Issue" at the top, the creation form keeps the behaviour rules from the issue that I'm currently viewing behind the form ...

Is it normal ? How can I have the correct behaviours on the creation form, even if I'm viewing another one behind ?

1 answer

0 vote

What version? This was fixed a while back, unless it's a different manifestation.

Version 0.5.0. My Jira version is 5.0.7.
I didn't check the release notes for the latest version ...

Does the latest versions work with Jira 5.0.7 ?

Can't remember, probably not. You can see in marketplace.a.c.

Ok. I tried 0.5.1, 0.5.2, and 0.5.3 and no one works with my Jira 5.0.7 version.

Jamie, have you any idea to fix it ? (even if I must modify source code ...)

Modifying the source code is inevitable. You'd have to back port whatever the relevant changes are, but it will be hard (particularly if you run the tests). If it wasn't I'd have done it myself. I had to make a decision not to support older versions just because I don't have time to do it, particularly given that the atlassian DOM and javascript has no fixed API or spec or anything.

I would like to try to modify the source code, but I need to know where the problem is. Let me know if you have any idea ...
Thank you :)

Try adding: behaviours = new Array();

under: AJS.$(document).bind('dialogContentReady', function (event, dialog) {

Ok, I've just tried to add it into the clientvaljq.js file, I thought it will be ok, but it's not.

Jamie, another question : is there any way to export and re-import the behaviours configuration ? Is the XML stored somewhere, and possible to get it ?

It's in the db - did you search the issues list or wiki or answers? I've answered this before with the exact sql you need. I can work it out again if you can't find it.

Ok thanks, i should be able to find this.

Basically, look in propertyentry for something like %Behaviour%, then join on propertytext (iirc) to get the config.

Yeah, I built the sql request. Thank you.

Hey Jamie,

I had the same problem (if you remember https://answers.atlassian.com/questions/79103/jira-behaviours-validators-bound-to-issue-opened-in-the-background) We fixed the bug locally...

Now I updated both JIRA (5.2.11) and behaviours plugin (0.5.3) and the issue reappears. You said that you fixed it but I'm afraid that I can fully reproduce the same problem we had about a year ago.

If you're on the view isue screen, want to create a new issue, the behaviours get merged are not completely reset. Could you have another look at it? If you want I can provide the code we wrote to fix it in the first place...

Thanks anyway

Cheers Christian

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
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