Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Limit Customer Request Types By User Group In Jira

David Harkins
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.
June 11, 2024

Is there a way to limit the available Customer Request Types as part of a behaviour?

Trying to to get this working at a basic hardcoded level first 

LinkedHashMap optionMap = [:]

optionMap.put("-1", "None")
getFieldByName('Customer Request Type').setFieldOptions(optionMap)
But cannot get this to work yet.
We have been limiting which Issue types can be raised from the blue create button in Jira,
Now we need to the same for the Request Types, as some should only be raised via the portal.

2 answers

1 accepted

0 votes
Answer accepted
David Harkins
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, 2024

I managed to get this working in a different way, by means of checking is a user is a Group or Role.
If they are, and it meets the criteria for that request type, the fields for that request type are set as required. (Visible, Read Only, Form Value, Label, Description).
if not, all other fields remain hidden and an error is displayed stating the user does not have access to that request type.

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 17, 2024

Hi @David Harkins

Unfortunately, this is not something that is doable via ScriptRunner's Behaviour.

It's not possible to restrict the Request Types via the Behaviour mainly because the Behaviour only works for Create / Edit / Transition and Assign screens.

The Request Types do not appear on any of these screens for the Behaviour to control it.

Thank you and Kind regards,
Ram

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events