Want to restrict change to Labels field (multi value) to certain users. So I created a group of users, and created an automation rule that if user changing the label is not part of group, the values would be reversed using smart value {{fieldChange.from}}.
However, its not bringing the old values in Labels field but rather making it blank if user is not member of that group. Any idea ?
Yes, I do have the same issue when we add {{fieldChange.from}} in the label field. It should change to previous value 4.3 but it is updating to None
Hi @sai rohit
For context, please include images of your entire automation rule and the audit log details showing the rule execution.
You may also want to write that smart value to the audit log to confirm it contains what you expect. There are some open defects for list-like fields (e.g. fixVersion, Components, etc.) not working with the change log smart values, so perhaps Labels stopped working too. Writing the value to the audit log will confirm if that is the case.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bill Sheboy ,
When I write to auditlog, it contains the expected value. Am I doing something wrong with the rule to update?
Thanks,
Would like to confirm whether the below rule is a right way to remove and update the field (label).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the type of your custom field, as that error seems to indicate it is not a string?
And, if you write the fromString to the audit log, what do you observe?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Customfield is String (When I write down to audit log using changelog.Reqtodelete.fromString it returned the value (4.2)).
The values are 4.2 and 4.3.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bill Sheboy ,
Problem solved, Just need double quotes around the smart value ,
"{{fieldChange.fromString}}"
Changelog:
"items": [{"field": "Reqtodelete","fieldtype": "custom","fieldId": "customfield_12467","from": null,"fromString": "4.3","to": null,"toString": "4.2"}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravish -- Welcome to the Atlassian Community!
Please post an image of the rule you have tried and the audit log for a rule execution? That will help the community have context to offer you suggestions. Thanks!
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.