This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.user.ApplicationUser; | |
import com.atlassian.jira.issue.MutableIssue; | |
import com.atlassian.jira.issue.UpdateIssueRequest; | |
if (issue.getFixVersions().size() > 0) { | |
def componentManager = ComponentManager.getInstance() | |
versionManager = componentManager.getVersionManager() | |
projectManager = componentManager.getProjectManager() | |
issueManager = componentManager.getIssueManager() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.security.Permissions | |
import com.atlassian.jira.event.type.EventDispatchOption | |
import com.atlassian.jira.user.ApplicationUser; | |
import com.atlassian.jira.issue.MutableIssue; | |
import com.atlassian.jira.issue.UpdateIssueRequest; | |
//Examples, 5 is my subtask issue type id. Will be different for others. Can find it in the issue history tab after converting a task to a sub-task | |
changeToSubTaskAndLink("XXX-8889", "XXX-0000", "5") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @Author:cben0ist (https://github.com/cben0ist) | |
* @Date: Dec 2015 | |
* @Description: Jira Script Runner JQL function I wrote to filter my request by member of the project role | |
*/ | |
package org.cben0ist.jira.jql | |
import com.atlassian.crowd.embedded.api.User | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.jira.jql.operand.QueryLiteral |