Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

script that shows historical data from workflow transition

kondaparthy sumanth April 10, 2018
Hi,

Anybody can provide me a script that shows how stories have been moved back to the status "in progress " with in a workflow

2 answers

0 votes
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2018

Another options is the JSU add-on, whic offers a "Transitions" tab that shows details of the transitions through which an issue has moved. https://marketplace.atlassian.com/plugins/com.googlecode.jira-suite-utilities/server/overview

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2018

Script for what plugin? If for ScriptRunner, it could be like this

import com.atlassian.core.util.DateUtils
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.history.ChangeItemBean

def componentManager = ComponentManager.getInstance()
def changeHistoryManager = componentManager.getChangeHistoryManager()

def inProgressName = "In Progress"

changeHistoryManager.getChangeItemsForField (issue, "status").reverse().each{ChangeItemBean item ->

    if (item.fromString == inProgressName) {
        // do whatever you want
    }
    if (item.toString == inProgressName){
        // do whatever yoou want
    }
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events