I've been checking the Smart Value Automation options here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/
I've been try to use the right parse option listed here:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#right-int-length-
As soon as I introduce that .right the automation doesn't add any text into the field. If I take the .right out, then the text field will fully fill the field it's reading from without issue. It's just that right parse that is causing it to fail (though doesn't fail in the audit log).
Anyone ever had issues with this?
Hi @Chris Rose
What is the type of your custom field? The functions you note operate on text values. So if the source field is numeric or a date/time, you may need to change to text first.
Also for a question like this, it can help to include an image of your rule and audit log. Those may provide the community more context to help. Thanks!
Kind regards,
Bill
Hi Bill,
Thanks for getting in touch.
The Originating Field is a single select list, and the Target Field is a Free Text field. Like i said, if I ignore the .right operator, and just try to copy the full value, it works fine which is why this has me puzzled.
Here's the rule:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that information, Chris.
That type of field contains everything returned for the selection (the ID and value), so please try this:
{{issue.Supplier.value.right(5)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh my word. I thought I needed it the other way around and to use the Text field options to write, not read the list settings!
You star. Thanks Bill!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a follow-up, it actually seems that ALL the additional options for the Smart Values give a blank result (the Audit Log still recording a success).
so anything from .reverse .left .match etc. do not work.
Is this because I'm copy from a custom field into another custom field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.