Connecting Issues in JIRA via SOAP API

I’m developing a C# application that interacts with the JIRA SOAP API. I’ve gone through the official docs but couldn’t find what I need. Is there a way to create a link between two issues using this API?

My main goal is to turn one issue into a subtask of another. Has anyone done this before? I’d really appreciate some guidance on how to approach this.

Maybe there’s a specific method I’m overlooking? Or is this something that’s not supported through the SOAP API? Any tips or code snippets would be super helpful.

Thanks in advance for any help!

hey mike, i’ve used the SOAP API before. For subtasks, try the createIssueWithParent method. It lets u make a new issue as a subtask under another one. Just remember to set the issue type to ‘Sub-task’ in ur code. good luck!

I faced a similar challenge a while back. My solution was to avoid trying to directly convert an existing issue into a subtask. Instead, I created a new subtask using the createIssueWithParent method, then retrieved the original issue’s details and updated the new subtask with the necessary information. In some cases, I even closed or removed the original issue after ensuring that the key details were successfully transferred. This approach took a bit more code but proved reliable. Make sure you have the proper permissions before making such modifications.

I’ve worked with the JIRA SOAP API before, and while it’s possible to create subtasks, converting an existing issue to a subtask isn’t straightforward. The createIssueWithParent method is your best bet for creating new subtasks, but it won’t help with existing issues. For your specific need, you might need to create a new subtask, copy over the details from the original issue, then close or delete the original. It’s not ideal, but it’s a workaround that’s worked for me in the past. Just be careful with permissions and data integrity. If you’re open to alternatives, the REST API offers more flexibility for these kinds of operations.