So I have a number field and I want to remove the decimal value since this field will only be whole values. How do I do that? When the field is merged into an email that is sent it will display 2.0 instead of 2 that I entered.
Now I read this page
And I found this
issue.summary = issue.summary.replaceAll("\\.0")
But I have no idea where to input this or if this is the best solution? I am a newbie learning Jira so detailed instruction on how to solve this would be appreciated.
That bit of code there only works if you have Script Runner.
You could use a regular expression workflow validator, but that would not help you for when users use the Edit screen or inline editing.
A regular expression to match only integers could be as follows:
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs