Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I add a requirement Yogi link with a Jira issue using REST API?

Jerome Blache
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 28, 2021

I would like to automatically add/delete requirement Yogi link with Jira issues using REST API. I have difficulty to retrieve all the necessary informations about a Yogi link from just its name. 

For exemple I would like to do a GET with the yogi link key (example REQ-001) and have in return the applinkId. 

I try this:  rest/reqs/1/api but always return 

{"greeting":"This is the correct URL, but you must POST to it...

 Is there someone with some examples to help me please?

Thank you.

1 answer

0 votes
Панской Андрей September 29, 2021

To use this rest/reqs/1/api, you must specify the url of the request parameter, like this <jira baseurl>/rest/reqs/1/api?url=<confluence baseurl>. The response will specify the applinkId.

The documentation specifies POST or DELETE method to add or delete requirement Yogi links in specified issue: <jira baseurl>/rest/reqs/1/issuelinks/<issueKey>

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events