Limit projects in dropdown menu on create screen (Scriptrunner?)

Knut Arne Ristebråten August 7, 2018

We have a use case that I need some help with.

With 'Create Constrained Issue' (today we use this with Exocet) we push a button in a Jira issue to get a new create screen. There we can create a issue in a different project.

In that create issue screen we want to be able to filter out which projects that are chooseable from the dropdown menu so we don't get all projects the user have access to. E.g. if we push "Send to vendor" button, we want to be able to filter so only vendor-projects are show in the projects dropdown menu.

I know we can limit access to the projects them selves, but we want the users to have access to the projects for different reasons.

 

Is it any way to use Scriptrunner's Behaviour for example for this? Groovy code to limit the projects shown in the "Project" dropdown menu on the create screen? Same with issue-type..

2 answers

1 accepted

1 vote
Answer accepted
Roland Holban (Adaptavist)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 9, 2018

At the current moment, there is not a way to restrict what options show up in fields such as Project Picker, User Picker, etc. This is because those fields are populated using a REST call and we would have to intercept that response and manipulate it.

With that said, our development team is working on it. I do not have any time estimates but stay tuned :)

Knut Arne Ristebråten August 10, 2018

Hi Roland, and thank you for your reply.

Looking forward for the new feature to be released some time in the future.

Ajay Khanna October 25, 2019

Hi Roland,

have you any update on functionality for restricting options in Project Picker, we want customize it and are trialing script runner for POC.

If you have pointers we can do in jquery or something would be very helpful.

 

cheers

Ajay

1 vote
Reto Gehring _Valiantys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2018

Hi Knut,

depending on how you use Project Categories in Jira you could also limit the number of project by category. Of course this would mean, that in the sample above all vendor projects are in the same category. This is a native feature of Exocet.

See Exocet Documentation

Knut Arne Ristebråten September 10, 2018

Hi Reto,

Thank you for pointing this out. In our situation it will help in some usecases, but sadly not all. But it is a helpful feature.

Suggest an answer

Log in or Sign up to answer