Forums

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

how to enable field edit - only once

Efrat Noam December 6, 2021

I'm looking for a way to freeze a field value after the first time its being populated, and this way to preserve it's original value 

1 answer

0 votes
Niranjan
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.
December 6, 2021

Hi @Efrat Noam ,

Remove the field from edit screen and have it only on create and view screen. 

Joe Pitt
Community Champion
December 6, 2021

@Niranjan That will only work if the reporter is supposed to fill out the field. If the field is supposed to be filled out further down the workflow it can be put on a transition screen and the view screen provided that transition field is never shown again, even if the issue is reopened. That part may be tricky.

Efrat Noam December 6, 2021

Thanks, it's actually even trickier...

I have a field in which we hold our expected version number for release candidates. I would like to know when we are moving candidates from one version to another, repeatedly. My Idea was to copy (via automation) the value from this field - to other custom field, that will be locked. So I need somehow to define an automation rule that will only run once - The trigger should be when the version value is updated for the first time. It can be either while creating the ticket or while editing it (even w/o transition)

Niranjan
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.
December 6, 2021

Agreed @Joe Pitt .

@Efrat Noam - Let us consider CF1 and CF2.

You can place the field CF1 on the transition screen and view screen. You can then use a conditional postfunction (with plugin like JSU or script runner) to copy from CF1 to CF2 . The condition can be "copy the field value CF2 only if CF2 is empty)" so that CF2 can be set only once. I have not tried this idea, but I believe it would work. 

 

CF1 - original field

CF2 - Field that will hold CF1 value

 

Regards

Niran

Efrat Noam December 6, 2021

I've managed to resolve it - if you are interested:

the destination field is "read only" and automation trigger will run only if it is empty (= once).

 

thanks!

Like # people like this

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