Hi All,
Im trying to convert my un-done subtasks to tasks when closing the parent issue throw the parent WF (scripted post function).
The convert operation works fine for me but i need to unlink the parent - child link.
Do you know how can i do it with JIRA 7 api?
Thanks!
Community moderators have prevented the ability to post new answers.
Since you are talking about a scripted post function, I assume you are asking about the Java API. You can do the following:
IssueLinkManager issueLinkManager = ComponentAccessor.getIssueLinkManager(); IssueLink issueLink = issueLinkManager.getIssueLink(sourceIssueId, targetIssueId, issueLinkTypeId); issueLinkManager.removeIssueLink(issueLink, applicationUser);
where sourceIssueId is the id of the issue which is the source of the link, targetIssueId is the id of the issue which is the destination of the link, issueLinkTypeId is the id of the type of the link. applicationUser is the user which performs the operation - usually the currently logged-in user.
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.