You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm using ComponentAccessor.getIssueService() for creating an object of IssueService , and then using that issueService.newIssueInputParameters() for creating object of issueInputParameters.
issueInputParameters does not have a setter method for adding a parent field Id on version 7.1.0 (com.atlassian.jira.issue).
If this version does not have that method, can anyone share a previous version that provide the setter method for parent field Id.
I'm doing the same task:)
You need to set ParentID not into IssueInputParameters object, but into validateSubTaskCreate method of IssueService.
Sorry, there is no anchor on page, so here is screenshot:
Hi @Customer ,
After using validateSubtaskCreate method of IssueService, does issueService.create(loggedInUser,createValidationResult) worked for creating subtask.
In my case subtask is getting created but without the parent key.
So, there is not linkage of parent-subtask issue on Jira side.
Do I need to do use other method than issueService.create ? If yes, can you help with it.