Forums

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

Trying to update assignee with scriptrunner escalation service

Ankuskum
Contributor
January 13, 2019

If issue isn't updated within 7 days, assignee will change automatically.

i am new to scriptrunner service and trying to implement but this isn't updating assignee value. Please help me with the below script

import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.user.util.UserManager
import com.atlassian.jira.user.ApplicationUser
import com.atlassian.jira.component.ComponentAccessor

def UserManager = ComponentAccessor.getUserManager()
ApplicationUser opt= UserManager.getUserByName("arag")

MutableIssue issue = issue
issue.setAssignee(opt);

1 answer

1 accepted

1 vote
Answer accepted
Fazila Ashraf
Community Champion
January 13, 2019
Ankuskum
Contributor
January 13, 2019

Hello @Fazila Ashraf

URL isn't working can you re paste 

Fazila Ashraf
Community Champion
January 13, 2019

https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-update-issue-and-set-assignee/qaq-p/552423 

I created it as link now in this comment. If it is still not working please try copy paste

Suggest an answer

Log in or Sign up to answer