The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello guys,
I'm not a developper and have very little knowledge in programming. I'm trying to modify the following line.
I need to grab only the first or last 4 characters of the "Package.ID" after the "720" what's the correct way of doing it?
the_id = "ABCD${asset?.PlatformAsset?.Package.ID}720${asset?.PlatformAsset?.Package.ID}3"
Thank you
GusTav
Where are you doing this and in which Atlassian application?
This gives you first four character,
${asset?.PlatformAsset?.Package.ID.substring(4)}
and, this gives you last three,
${asset?.PlatformAsset?.Package.ID.take(3).reverse()}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Over the weekend, Atlassian ran a New York Times ad calling on business leaders to join us in committing to a net zero future through the Science-Based Targets Initiative. As part of our gl...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.