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.
Whenever we use JIRA macro in Confluence, it returns value like - 105 issues.
If I want to get only the numeric value and exclude text 'issues', is it possible?
If this is possible then it will help a great deal in performing automated arithmetic operations in Confluence, by pulling values in a table and then using table transformer (sql queries) macro.
Hi @Jitendra Shembekar ,
You may use an additional Table Transformer macro to split your string by the space character and leave only numbers:
SELECT *,
T1.'Column 2'->split(" ")->0 AS 'Column 2'
FROM T*
Hope this helps your case.
Thanks for the revert. I tried the suggested solution but I am getting parsing error.
Here is the table I am using
This is the formula I am using
SELECT *,
T1.'Issues'->split(" ")->0 AS T1.'Issues'
FROM T*
This is the error
Can you please check what is wrong here. Thanks in advance for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to use not
SELECT *,
T1.'Issues'->split(" ")->0 AS T1.'Issues'
FROM T*
but just
SELECT *,
T1.'Issues'->split(" ")->0 AS 'Issues'
FROM T*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Stiltsoft support - I found the mistake in my formula. :)
Thanks a lot for the solution. You guys rock! Excellent!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jitendra Shembekar this is fully possible. When you are in the macro definition there is a link in there for Display Options. In Display Options you can select Issue Count Only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I am using that option, but it gives output like this - '66 issues' not just the number '66'.
Thanks!
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.