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.