Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create sub-task issues because parent field is not accepted #29

Closed
ebekker opened this issue Jul 22, 2016 · 3 comments
Closed

Comments

@ebekker
Copy link
Member

ebekker commented Jul 22, 2016

With the current cmdlet set, it's not possible to create an issue that is a sub-task because the issue requires a Parent to be specified, however the New-JiraIssue cmdlet does not accept a parent field because it is not returned in the set of available fields by the Get-JiraField cmdlet.

The missing parent field issue appears to be reflected by this JIRA bug. Presumably this is an implied global field.

But as shown in this API tutorial example for creating sub-task issues, the parent is required.

@replicaJunction
Copy link
Collaborator

Cool, nice catch. I don't work with sub-tasks much, so I hadn't noticed the problem. Thanks for the fix - I'm merging it now.

@H-J-Simpson
Copy link

@ebekker is this issue solved? When I try to create a SubTask with New-JiraIssue
I pass along this value:
parent = @{ key = $newParentIssue.Key}
But all I am getting is an error saying "he issue no longer exists."
I don't even know what that means :-)
Do you have any thoughts on that?

@lipkau
Copy link
Member

lipkau commented Aug 19, 2020

@H-J-Simpson . This issue has been closed a long time ago.
Please create a new ticket including the code you are using as well as proof (get-JiraIssue) that the $newParentIssue.Key actually exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants