Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Help with padLeft

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



2 answers

0 votes
DPK J Community Leader Aug 24, 2019

This gives you first four character,


and, this gives you last three,



I tried but it's not working, for some reason.

DPK J Community Leader Aug 26, 2019

What it this printing?

0 votes

Where are you doing this and in which Atlassian application?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Off-topic

Importance of Self Realization

Knowing who you are is very important. Life depends on how you define yourself. Be yourself; everyone else is already taken. — Oscar Wilde You might have seen come across quotes like: I am here fo...

445 views 2 6
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