Trying to make Field Non-Editable

Sanjivani Wayal August 3, 2023

Automation.PNG

 

I want to make field Non Editable.

I have written this automation so that if any other user of any other group other than Automation changes the value for Pending Approval field the Field should remain unchanged meaning it should have old values (not take any new value entered by any user) As another automation is already filling values that field

In Edit i have used {{fieldChange.fromstring}}, Now in log action it gives correct names as old values which were there but it doesnt update field it is removing all values from the field and making it empty .

Tried using the solution to remove field from Edit Screen it removes the field from View as well.

Can someone please help with this?

1 answer

1 accepted

0 votes
Answer accepted
Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 5, 2023

Hi @Sanjivani Wayal 

I used this rule with a "Select List (single choice)" field...

  • Trigger: Issue Updated
  • Condition: User Condition
    • User = User who triggered the event
    • Check = is not
    • Criteria = Automation for Jira
  • Action: Edit Issue
    • Field = Select List Field
      • Value = {{fieldChange.fromstring}}

...and it worked fine for me!

---

If it's not working with your field type, you could try logging it as a variable, then using that in the field edit? It would look something like this...

  • Action: Create Variable
    • Name = FieldValue
    • Value = {{fieldChange.fromstring}}
  • Action: Edit Issue
    • Field = Select List Field
      • Value = {{FieldValue}}

---

Let us know if either of these options work! If no - what type of field is "Pending Approval"?

Ste

Sanjivani Wayal August 10, 2023

Hi,

Thanks you it worked for me only thing was this field was also getting updated by another automation changing the trigger helped

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events