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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.