Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,033
Community Members
 
Community Events
165
Community Groups

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

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 Community Leader 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
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,167 views 34 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you