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.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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."}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.