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 would like to find a plugin that would give the ability to generate the following:
I found a plugin that could do the first two points but facing some issues in the last point!
Hi @Aya AlJboor
You can use a combination of Jira built-in features and plugins. I'll suggest a solution for the third point using ScriptRunner for Jira.
Please use this script in your script field:
import com.atlassian.jira.component.ComponentAccessor
def issueManager = ComponentAccessor.getIssueManager()
// Retrieve the custom field holding downtime in minutes
def downtimeField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Downtime in Minutes")
def downtimeInMinutes = issue.getCustomFieldValue(downtimeField) as Double
if (downtimeInMinutes == null) {
return null
}
// Calculate downtime percentage based on the formula provided
double totalTimeInMonth = 24 * 60 * 7 * 30
double downtimePercentage = (downtimeInMinutes / totalTimeInMonth) * 100
return downtimePercentage
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.