Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i link multipe issues to a jira tickets via REST API?

Anna Vincent May 29, 2022

I want to link 2 jira tickets to one jira ticket.

I am able to add one issue link.  but not able to add the second one. Getting the below

{
    "errorMessages": [],
    "errors": {
        "issuelinks""Too many operations (2) provided for field 'issuelinks'. We support at most 1 operation for this field."
    }
}
Below is the  JSON data that i am passing
{"fields": {"project": {"key""ESC"
    }, "summary""Testing API""description""Testing""issuetype": {"name""Task"
    }, "labels": ["TEST"
    ], "assignee": {"name""avincent"
    }, "components": [
        {"name""Data Dictionary"
        }
    ], "fixVersions": [
        {}
    ], "priority": {"name""High"
    }, "duedate""2022-03-15T00: 00: 00.000-0500""versions": [
        {"name""1.0"
        }
    ], "customfield_10141": [
        {"value""In Engineering"
        }
    ], "customfield_15761": [
        {"value""N/A"
        }
    ], 
}, "update": {"issuelinks": [
        {"add": {"type": {"name""Depends""inward""Required by""outward""Requires"
                }, "inwardIssue": {"key""SE-54691"
                }
            }
        },
        {"add": {"type": {"name""Depends""inward""Required by""outward""Requires"
                }, "inwardIssue": {"key""SE-54691"
                }
            }
        }
    ]
    
}
}

1 answer

1 vote
Tuncay Senturk _Snapbytes_
Community Champion
May 29, 2022

Hi @Anna Vincent 

It seems there is already an issue which has been in Gathering Impact status: JRASERVER-66329

Suggest an answer

Log in or Sign up to answer