Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict access to tickets based on the custom field value selection

manikanta ch September 23, 2020

Hello Alll,

We want to restrict access to tickets based on the custom field values selection.

For Example - we have a custom field(single select) called Partner and it has options 1,2,3

Tickets will be created in Project by 3rd party partners. there are 3 users of 3rd party partners, each partner has there own value in the Partner field. If 3rd party partner 1 created a ticket with a selection of Partner 1 option, the ticket has to viewable only to him and other partners should not see the other partner tickets.

We have a script runner installed in our instance. Please help me with the script if any one done this before.

Thanks in advance,

ch

 

1 answer

0 votes
Marek Soukup
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 23, 2020

Is there a reason why you don't want to use security levels (https://confluence.atlassian.com/jirakb/issue-security-levels-locks-issues-from-all-users-636421142.html)? It sounds it is a perfect solution for you.

If you need more info, feel free to ask.

ms

manikanta ch September 23, 2020

Hi @czsup ,

Thanks for reply. Could you please provide me more details, how to set the security level on issues with the URL you shared?

Thanks,

ch

Marek Soukup
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 23, 2020

Hi,

sorry, I post wrong link. I didn't find documentation for cloud version, but it is the same https://confluence.atlassian.com/adminjiraserver072/configuring-issue-level-security-829827025.html.

It is another scheme you can create to define permission to individual issue, not only a project.

ms

manikanta ch September 23, 2020

I know about the Issue security level scheme. How can we define custom field values in the scheme?

Marek Soukup
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 24, 2020

My question was, if you can exchange custom field with definition of a partner to security level. It is not possible to have security level for each partner?

If not, you can select value of partner from custom field and then set security level according this value by post-function in a workflow.

manikanta ch September 24, 2020

It worked with Script runner post function "Set issue security level depending on provided condition".

Thanks for the suggestion.

Srikanth Gogineni February 21, 2023

@manikanta ch 

 

I have the same situation. could you help to provide the security level and the condition that you have configured .

Suggest an answer

Log in or Sign up to answer