You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have use case where user enters a number field in Customfield A, and need to generate URL in second field e.g.: www.example.com/cusomfield.A
the issue is, if value in A is larger. e.g: 99898099
then URL becomes: www.example.com/9.9898099E7
so my requirement is
it would be great if any one can help me with this.
Thanks
Hi @Kautilya Fadia IN ,
You may change the number format in the smart value like this:
{{issue.Customfield A.format("###")}}
More info in the docs.
Hope it helps.
Regards
I tried .format in automation but for some reason its not working. everytime I use .format it seems to ignore value in number field
Attached snapshot of how I've configured it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kautilya Fadia IN ,
When and how exactly does that format fail?
If format doesn't have a consistent behaviour, then I'd consider using a custom field of type Text (single line) instead of Number type.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the issue is, if value in A is larger. e.g: 99898099
instead of getting example.com/99898099
it puts example.com/
completely ignores customfield. although automation rule passes so no failure log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kautilya Fadia IN ,
The format has worked for me in tests with higher numbers.
Maybe you can use a Text field (single line) to avoid number format issues.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yeah using text field was last option. This is pure numbers field. not sure why Jira behaves erratically with numbers.
thanks for the help will try to use Text field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kautilya Fadia IN ,
If you could attach some screenshots of how you're generating the URL in the automation rule that would really help.
Cheers,
Simeon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've customfield_11305 as Number field, which by default takes floating numbers.
part with http://example.com is static, I just need to place customfield_11305 after URL like: if customfield_11305 = 11223322 URL should be: http://example.com/11223322
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.