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
Hello,
I am using Adaptavist ScriptRunner in JIRA Cloud. I have been reading a lot of materials and it seems we cannot use scripted fields in JQL or dashboards anymore. Is that correct? Does it mean the calculated field shows in the ticket and that is all, no way to use that information?
Thank you
Welcome to the Atlassian Community!
That is correct. The way we've had to implement scripted fields means that they are not exposed to JQL or the dashboards. This is because they are not held inside Jira (like the server ones are), so there are no field headers for them to get hold of.
There is a way to fix this - instead of scripting a field, create a Jira field, don't put it on any "update" screens, and then script the editing of that. As the field will be inside Jira, your search and dashboards will be able to see it!
Hi Nic, thanks for the welcome and the reply!
Do you have any documentation on the workaround? I understand the creating a field and the screen but not the scripting of it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think https://library.adaptavist.com/entity/calculate-custom-field-on-issue-update is a good way to start.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! not sure if it will help as I am trying to calculate the age of a ticket and show that in dashboards and filters so the ticket might not have any triggers. I will definitely look at it. 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.