IssueInputParameters does not have a setter field for parent field for jar version 7.1.0

Akshay Mehta October 11, 2023

Hello Everyone,

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.

1 answer

0 votes
Customer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2023

Hi!
I'm doing the same task:)
You need to set ParentID not into IssueInputParameters object, but into validateSubTaskCreate method of IssueService.
Doc: https://docs.atlassian.com/software/jira/docs/api/7.6.1/index.html?com/atlassian/jira/bc/issue/IssueService.html
Sorry, there is no anchor on page, so here is screenshot:screen.PNG

Akshay Mehta October 18, 2023

Hi,
Thanks for the answer. It worked.

Akshay Mehta October 19, 2023

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.

Suggest an answer

Log in or Sign up to answer