Using JIRA REST API I am unable to create a Jira issue in which I want to link to another issue using link type 'Child' however I am able to create it with other issue link types like 'Tests', 'Related', 'Parent' etc. But all issue link types are available in the application and I am able to create issue with all link types in UI. Kindly help.
API: https://<jiraservername>/rest/api/2/issue
Payload:
Error:
Try changing outwardIssue to inwardIssue so it could be like this:
"add": {"type": {"name": "child"},"inwardIssue": {"key": "TTP-15757"}}
Issue link types can have different descriptions for inward and outward issues, you can check yours in Settings > Issues > Issue linking.
Thank you @Alisa Zamaraeva for taking the time to help me.
Description in Settings> Issues > Issue Linking.
Also, I have tried with inwardIssue but no luck. Please help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again @sarath kumar
From what I see on the screenshot, my next guess is that when you create issue link with api you choose link type by name (first column), not outward/inward description. And based on the screenshot you posted, there are no Child issue link type.
As I understand, when you try this code with Parent link type it makes 1st issue a parent and 2nd a child, but you want it vice versa.
Try this, it should make things right.
"add": {"type": {"name": "Parent"},"inwardIssue": {"key": "TTP-15757"}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Today only! Share what you’re the most excited about for Team ‘25 or just dance out the beginning of a new quarter with us.
Comment the postOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.