Hi,
I have a field in a Jira Assets/Insight schema which i'd like to split the value for. I've used the split in the past but in Asset fields its returning nothing.
We have something like XX12344-1234. I'd like to return the XX12344 only.
I've tried:
{{lookupObjects.first.id.split("-").first}}
the {{lookupObjects.first.id}} works fine, just the split doesn't return anything.
Thanks :)
First thing: I am not using Insights, and so I am basing my suggestion on what I know about automation rules.
I believe lookup objects is returning, well...an object. That has structure to it and is not just text. Perhaps try accessing the value attribute before the split, like this:
{{lookupObjects.first.id.value.split("-").first}}
or
{{lookupObjects.first.id.value.split("-").get(0)}}
Kind regards,
Bill
Neither worked unfortunately. They work fine with lookupIssues but don't seem to work with lookupObjects. Logs returned no result
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wonder if the dynamic nature of assets and lookup objects is preventing this, similar to what happens for calculated fields with marketplace addons.
Let's try a work-around:
Saving the object to a variable will both look it up and force it to text. And, writing it to the log will confirm it contains what you expected before we try other things.
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.
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.