Update a Custom Group Picker Based on Security Level

[Security Levels: ]

Level 1 has Group A and Admin Group
Level 2 has Group B and Admin Group
Level 3 has Group C and Admin Group

[ Custom Group Picker: ]
Uploaders


[ Goal: ]

When Security Levels 1 and Level 2 are selected, the Uploaders Group Picker will be updated so that only Group A, Group B, and Admin Group will be able to perform the next transition in the outgoing Status.

[ Problem: ]
1) I don't have a clean way to select multiple Security Levels by default.
2) I don't have a way to extract the Group/User/Role information based on the selected Security Levels.

I have Script Runner and JMWE installed in the instance.  The post-function options seem to be very limited for what I'm trying to do (Update Custom Field X based on the selected value(s) in Field Y)  Has anyone ever had to do this before?  Any help would be appreciated...

2 answers

0 vote
Alexey Matveev Community Champion Nov 16, 2017

Hello,

I do not understand your Goal. What is the connection between the Uploaders group picker and the next transition? Do you have a condition on the transition? If so why do you need the custom field and what do you want to store there?

Hi ALexy!  Thank you for answering (See the workflow attached) 

Let me try to clarify (see attached for the simplified workflow):

My goal is to have the Admin Group define a list of select users (Uploaders) who are to work on the ticket (Transition 1) and make it so that only the Uploaders+Admin Group can see and work on the ticket (Transition 2) to completion  in the actual use case, Admin Group may select to up to 7 groups to do the work, but you never know which ones will be selected.

In short:

1) There is to be a condition where only the Uploaders can execute Transition 2.
2) I need the custom field picker to store the list of users who will be working on the ticket as picked by admin.

 

 

Workflow.png

0 vote
Alexey Matveev Community Champion Nov 16, 2017

If security level chosen to  Level 1 then only Group A and Admin Group will be able to see the issue which means that only they will be able to transition the issue. In the Uploaders custom field you can can add aditional users. You do not need to copy users from Group A and Admin Group to the Uploaders field.

Hi Alexey,

The thing is we want to add up these users to the Uploaders group somehow (whether it be via Custom Field or Security Level).  The idea is also try not to have the Admin Group users pick from the Uploaders field because it'll list all Groups available in JIRA, which may cause confusion.

Another approach I was thinking of was maybe doing a select list, where each option will append Group X and Admin Group to the Uploaders custom Group field.  But I do not know how to do it so that the options add up rather than overwriting (copy value from one field to another)

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...

361 views 0 6
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