Hi,
This field was created to count the no of time the ticket was assigned to a group AA Service Desk. first assignment on creation is not getting captured, later changes are getting captured. What changes will be required here?
Whenever it is first assigned to this group on creation through automation or being preset as a value. It is not captured as a count. It is showing 0. It should count that as 1 and later routing to that group also.
This is the script written for a number field template scripted field but what changes will be required here to achieve the objective.
import com.atlassian.jira.component.ComponentAccessor
def data = 0
for(def his : ComponentAccessor.getChangeHistoryManager().getChangeItemsForField(issue, "Group Assignee")){
if (his.toString == "[AA Service Desk]"){
data = data +1
}
}
return data
Kindly advise.
Regards,
Muddassir Quazi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.