Behaviours not executed from admin mode ?

JIRA 6.3.12

Scriptrunner 3.1.4

I defined some behaviours, they work correctly (issue create screen, issue edit screen, workflow transition screen). But when I am in admin mode, and then click the "Create" button, I first have to select the project and the issue type, and only then the issue create screen is shown. In this last screen my behaviours are not executed.

Is this a known limitation ?

3 answers

0 votes

No, it's not a limitation, and should work fine like that. But we have seen an occurrence of this before, but were never able to work out why or reproduce. We thought it had something to do with another plugin, perhaps something related to "testing"?

One thing that I did note is that (one my version) the project and issue type fields have different name/id values on the two different screens.  This might cause a problem somewhere in your behaviour and/or field mapping if you are triggering on a specific project and/or issue type.

 

I know in the past I have had to set the behavour mappings to All Projects/All Issuetypes and deal with that inside of the behavour scripts as stuff like this was a problem depending on what screen your were viewing when you clicked "CREATE ISSUE". 

 

now that I am remembering, in the past I have seen one screen return issuetye as an array and another as a string causing me to do this check if (issueType instanceof ArrayList) {issueType = issueType[0];} I haven't seen this issue for a while but I still do the check anyway!!

I did some debugging. It seems the behaviour script is executed correctly, but on the resulting screen non of the hidden/required methods is executed ?

@Jamie Echlin [Adaptavist] , we do not have any test plugins installed. We have the issue systematically all times we create an issue from an admin screen (even the screen to manage versions in a project!)

Of course this is not blocking, but very annoying.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

680 views 4 5
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