Details
-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
3.7.3
-
3.07
-
Description
SetComponentAndVersion.java
public class SetComponentAndVersion implements FunctionProvider { /** * Automatically assign subtasks the same component/version as parent task. */ public void execute (Map transientVars, Map args, PropertySet ps) throws WorkflowException { MutableIssue task = (MutableIssue)transientVars.get("issue"); if (task.isSubTask()) { ComponentManager componentManager = ComponentManager.getInstance(); IssueManager issueManager = componentManager.getIssueManager(); MutableIssue parent = issueManager.getIssueObject(task.getParentId()); task.setComponents(parent.getComponents()); task.setFixVersions(parent.getFixVersions()); task.store(); } } }
Fairly simple and straight forward. I have access to the components and versions from the parent task, but they are not set successfully on the child task.
Attachments
Issue Links
- duplicates
-
JRASERVER-5225 Sub-tasks should inherit selectable fields from the parent task
- Closed