I want to bulk update one field of multiple sub-tasks.
This field is issue summary field or it is called task title.
I tried using JIRA bulk update feature but I didn't find the issue summary field to bulk update.
I have ScriptRunner installed. Can this be accomplished by ScriptRunner?
If so, I would need help with query.
e.g. I want to set issue summary field for multiple sub-tasks to "Test sub-tasks".
I have list of sub-tasks for which I need to make the bulk update.
Thanks,
Kaushik.
Hi @Kaushik Patel,
Below is the sample script which I run in script console to update issue's summary
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.event.type.EventDispatchOption;
def issue = ComponentAccessor.issueManager.getIssueByCurrentKey("PARENT-23")
def subtasks = issue.getSubTaskObjects()
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
subtasks.each{ subtask ->
def sb = subtask as MutableIssue
sb.setSummary("Summary from console")
ComponentAccessor.getIssueManager().updateIssue(user,sb,EventDispatchOption.ISSUE_UPDATED, true)
}
hope this gives you some idea
BR,
Leo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Manage Confluence like never before! This new learning path teaches you how to manage content, users, and permissions while optimizing user experience. Built for admins at all levels who want to confidently lead and unlock more innovative collaboration.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.