We are trying to create issuelinks based on a particular transition through Jira REST API from Python. As a first step, I am trying to link the issues separately using below command and it works.
As a second step, I am trying to perform the transition [screen has been added to enter few fields in the workflow] using below command. Eventhough the ‘linked issues’ field has values [created using above step], it is throwing an error message to enter the ‘linked issues’ field values.
Perform a transition on an issue. When performing the transition you can update or set other issue fields.
The fields that can be set on transtion, in either the fields parameter or the update parameter can be determined using the /rest/api/2/issue/{issueIdOrKey}/transitions?expand=transitions.fields resource. If a field is not configured to appear on the transition screen, then it will not be in the transition metadata, and a field validation error will occur if it is submitted.
Perhaps you should try the above API to see what field names the transition wants.
Looks like resolution field is mandatory for Closed transition and it is accepted in Fields parameter. Whereas issuelinks is not mandatory but still the transition is not successful.
I am not sure if changing Operations from add to set for issuelinks will solve the issue to update issuelinks using fields parameter