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

This widget could not be displayed.

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

This widget could not be displayed.

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

513 views 3 18
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