I am using jira rest api with oauth authenitcation to fetch and create issues. While creating issue with a parent I got the error of could not find issue by id or key. I have double checked it with my account the issue is active and there I own the projects and issues but in creating subtask it gives me this error
Welcome @zohaib aslam .
It's probably the way the API call was made. By the error message, it doesn't look it the value was submitted correctly where Jira could use it to find the parent.
This article is similar to your issue. You may want to give this example a try and see if you are able to do it:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.