Hi,
I want to retrieve the value of the SLAs from the parent task and add on the sub task upon subtask creation.
The code below is not working.
Please see code below:
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.CustomFieldManager import com.atlassian.jira.issue.IssueManager import com.atlassian.jira.issue.Issue import com.atlassian.jira.issue.MutableIssue import com.atlassian.jira.issue.util.DefaultIssueChangeHolder import com.atlassian.jira.issue.ModifiedValue def field = ComponentAccessor.getCustomFieldManager().getCustomFieldObject('customfield_13207') def parentMyFieldValue = issue.parentObject.getCustomFieldValue(field) def changeHolder = new DefaultIssueChangeHolder(); field.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(field), parentMyFieldValue),changeHolder);
Thanks
Swarna
I believe a possible solution would be
I. Create a custom field (issue parent sla) to store the remaining sla of the parent issue.
II. Create slas for the subtasks based on the parent issue custom field. Example below:
issue parent sla <= 30h goal 29h
issue parent sla <= 20h goal 19h
issue parent sla <= 10h goal 9h
issue parent sla <= 5h goal 4h
Hello,
What do you mean by SLA? is it the Jira Service Desk feature or is it a custom field, created by you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this case you can not copy this field. This field is calculated by SLA settings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.