Issue With Behaviours (User in Group and Server Side Script)

Hi,

It seems when a behaviour has more than 1 case the plugin always defaults to the last rule in the behaviour when using "user in group restriction" and serverside script.

For example i have a field called Customer Code (its a Group Picker)

I do not want the customer to be able to set it (so its hidden), rather auto-populate on the creation of an issue.

So i create a behaviour and do the following for field Customer Code.

ServerSide Script: set Customer Code to a value("ClientX")

Then add a rule that says when user in group - "ClientX" alllow

I then add more rules below for each client (i can do this with more rules in 1 behaviour, or multiple behaviours). Whenever i create a ticket, all clients end up creating a ticket against the last rule (ie "Client Z"). Even if i put all the other clients as Except when in Group, it still picks up the last server side script.

I am using the server side script editor facility.

2 answers

Checking the clear script cache first. This maybe my issue!

ok definitely an issue clearing cache makes no difference. I have the field visible in order to see what value it adds.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
Read article

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