Forums

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

How can you disable a custom field if you are already logged on to the ticket?

Lenzsér Adrienn February 7, 2024

Hello team!

There is a custom field - the severity field - whose function we envisioned in such a way that if it is logged on the ticket, its value cannot be changed. Is there such a solution?

Thanks!
Adrienne

3 answers

0 votes
Lenzsér Adrienn February 7, 2024

Hello @Hariharan Iyer !

Thanks for the quick response!

The value of the severity field is required at the To do -> In Progress transition. So this field will be permanently filled. Compared to this, the log field should no longer be modifiable after filling it out. So I want to disable logging for further transitions. Can this be solved?

Thank you,
Adrienne

Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 8, 2024

Hi @Lenzsér Adrienn ,

 

I'm not sure I understood correctly, so let me paraphrase here:

1. Severity will have a value, but that value should not be modifiable

2. Log will be empty initially, but once it's filled it should not change.

 

Both are possible. For log, you can construct the rule as in the image I added. For severity, the rule would be similar, but the condition would be 

{{fieldChange.fromString}} does not equal {{fieldChange.toString}}

 

0 votes
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2024

Hi Adrienne,

This is not directly possible at present if the field was not populated on create, but rather set later (or if your project is team-managed). However you can configure an automation rule so that the value is set back to the previous value. The automation rule below depicts how you would do that for the "Due Date" field as a sample.

Screenshot 2024-02-07 at 8.35.00 PM.png

In the last step, the new value for the field is again the smart value {{fieldChange.fromString}}

 

You can also add a comment to the ticket when this is done that mentions why the field value was set back (as another step in the rule).

0 votes
Nic Brough -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.
February 7, 2024

Welcome to the Atlassian Community!

For a company-managed project, if you remove the field from the edit screen, people will not be able to change it after it was populated on create.

Suggest an answer

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

Atlassian Community Events