Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Smart Value .right(x) won't add parse text into Text Field (Single Line)

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?

2 answers

1 accepted

0 votes
Answer accepted

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:

 

autorule.jpg

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)}}

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!

Like Bill Sheboy likes this

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?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

832 views 25 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you