I want to restrict users to edit custom field from List view.

Anirudh Pratap Verma January 13, 2025

Hi,

I have restricted few custom fields from edit using scriptrunner. But now I can see that from list view users can still edit the custom field.

How can we restrict users to edit the custom field in List view.

 

Thanks,

3 answers

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 15, 2025

@Anirudh Pratap Verma 

We need a automation that can revert the value if it is modified by a user who is not present in a specific group. 

Are you familiar with how to construct Automation Rules?

Documentation: https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

On-demand, free training: https://university.atlassian.com/student/catalog/list?search=jira+automation

 

What is the field type of the custom field?

 

The basic structure would be:

Use the Field Value Changed trigger to monitor the field of interest.

Add a User Condition to check if the User who trigger the event is in a specified group.

Use an Edit Issue action to reset the field value to what it was before the change.

When you use the Field Value Changed trigger that gives you access to smart values that you can use the find out what the field value was before it was changed.

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--fieldChange--

 

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 13, 2025

@Anirudh Pratap Verma 

I recommend that you contact Adaptavist support about this.

I suspect that either Atlassian doesn't provide a method for them to affect the List view, or Adaptavist hasn't had time to implement functionality for that (if Atlassian does provide a method).

You could get confirmation on which is the case by contacting Adaptavist directly.

0 votes
Cyrille Martin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 13, 2025

Hi @Anirudh Pratap Verma 

Why are not removing those fields from the edit screen t avoid any modifications from the users ?

Regards,

Anirudh Pratap Verma January 13, 2025

Hello @Cyrille Martin 

This field we have enabled for editing for few users through group. So script in scriptrunner only allow users in a particular group to edit this custom field.

Hope it make sense why we cant remove it from edit screen. 

Looking for some suggestion/workaround to resolve this issue.

Thanks, 

Maciej Dudziak _Forgappify_
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.
January 13, 2025

I don't think that's possible. UI modifications API still doesn't support ListView, so it won't work in it.

Anirudh Pratap Verma January 14, 2025

Hello @Maciej Dudziak _Forgappify_ 

We need a automation that can revert the value if it is modified by a user who is not present in a specific group. 

Can you help me on this automation as a workaround.

 

Thanks,

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events