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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ScriptRunner Cloud Creating Issue Link

When running some code in a Script Listener, specifically this POST:

def newLink = post("rest/api/3/issueLink")
.header("Content-Type", "application/json")
type: {name: "Cloners"},
inwardIssue: {key: newEpic.key},
outwardIssue: {key: issue.key}


I am seeing the following error: 


2018-10-23 17:56:25.396 WARN - POST request to rest/api/3/issueLink returned an error code: status: 400 - Bad Request
body: {"errorMessages":["Unrecognized field \"delegate\" (Class, not marked as ignorable\n at [Source: com.atlassian.plugin.connect.plugin.auth.scope.InputConsumingHttpServletRequest$1@1ab82f46; line: 1, column: 22] (through reference chain:[\"type\"]->[\"delegate\"])"]}


I don't understand this error as "Delegate" is not even a field that exists within our JIRA Instance. Is there any better way to do Issue Link creation? Have tried a few ways now...

1 answer

Hi Andrew,

Thank you for your question.


I have created an example Script Console script which can be ran from the Script Console and shows how to link two issues together. 

You can view the example script here and can use this example code as a reference to see the syntax that must be specified to link issues together so that you can use this approach inside of your script. 

If this response has answered your question can you please mark it  as accepted so that other users searching for a similar question can see that this is a correct answer.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

78 views 6 5
Join discussion

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