Hi,
Is there any Possiblity to create a Parent custom field in jira data centre more like parent issue, summary and parent issue type to be added in the created subtasks in Jira data centre without using Jira enhancer plugin
Welcome to the Atlassian Community!
Your question was tagged as cloud but as far as I know, this is Jira DC you're asking for.
You can add a workflow post function (using one of the workflow addons) and update the custom fields accordingly. However, the problem is whenever those fields are updated in the parent issue, it needs to be updated in the subtasks as well. So it is best to implement a listener which will listen to issue events and update those fields within the listener code. So, what I would say is it is not a very straightforward process.
Hi @Tuncay Senturk ,
Thankyou for the response. Is there there any listener script available.
I am getting error while trying the below code
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.MutableIssue;
import com.atlassian.jira.component.ComponentAccessor;
IssueManager im = ComponentAccessor.getIssueManager();
MutableIssue issue = im.getIssueObject("ANDROID-38");
def output = ""
for (e in issue.getSubTaskObjects()) {
output = output + e.getSummary() +"," + e.issueType.name + "<br/>"
}
return output
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid, I don't have any listener script available but bear in mind that the code you shared is inclined to update subtasks when the parent is updated.
However, there may be other scenarios, assume this code ran and updated every subtask. Then another subtask was created.
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.