Forums

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

How to add issueLink between issues in different project while creating an issue ?

Julien November 9, 2018

Hello

 

I'm facing a problem and I don't understand why. I would like to create a new issue from an existing one. I would like to be able to choose a project. I already have something : I can create a new issue and select a project, I can create a issue linked to an other one in the same project and select linkType. What I can't do is create a new issue linked to an other one in an OTHER project and select linkType.

(I'm using rest api)

 

Could someone help me with this ? I going crazy right now ... Thank you.

4 answers

1 accepted

0 votes
Answer accepted
Julien November 29, 2018

I found the solution. It´s a user rights problem, what I made is create link from the old ticket where I have rights. In other words update the old ticket.

0 votes
Craig Thomson
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!
November 23, 2018

Add linked issue field to the default screen (if the default screen is being used on the project), it is not there by default, otherwise, add linked issue to relevant screen scheme for create issue operation.

Julien November 29, 2018

Thank you Craig but I found the solution. Forgot to update. Sorry

0 votes
Julien November 9, 2018

Can someone help with this ? Thank you.

0 votes
Julien November 9, 2018

Here is my JSON and the answer I got. Not that it works when I change project without addind link or just adding link in the same project, my problem is add a link and change project. Obviously I change project at issue creation, that's why issue is set with a new project and problem occurs while adding a link with the old issue (which is in an other project).

 

{
"update": {"issuelinks": [{"add": {
"inwardIssue": {
"self": "***",
"id": "***",
"fields": {
"summary": "***",
"issuetype": {***
},
"priority": {***
},
"status": {***
}
}
},
"key": "***
},
"type": {
"inward": "is caused by",
"name": "Cause",
"self": ***
"id":***
"outward": "causes"
}
}}]},
"fields": {
"summary": ***
"issuetype": {
"avatarId": ***
"name": ***
"self": ***
"description"***
"id": ***,
"iconUrl"***
"subtask": ***
},
"components": [],
"versions": [],
"project": {
"avatarUrls": {
***
},
"name":"***
"self": "***
"id": ***
"key": ***
},
"fixVersions": [],
"priority": {
"name": ***
"self": ***
"id": ***
},
"labels": []
}
}
Connection Response: 400: 400
400
IOException: Server returned HTTP response code: 400 for URL: https://firm/jira/rest/api/2/issue/
{"errorMessages":[],"errors":{"issuelinks":"Field 'issuelinks' cannot be set. It is not on the appropriate screen, or unknown."}}

Suggest an answer

Log in or Sign up to answer