The Linked Issues Field

You can work with the Linked Issues fields as with most other fields, except for a few cases. As it’s a composite field consisting of two fields, you must set the value differently from with other fields.

Setting the value

To set the value you need to set the two values separately:

Include Bitbucket for Confluence: An error occured

Failed to connect to Bitbucket. Check the Application Link for Bitbucket Data Center or the permissions of the app password for Bitbucket Cloud. Error details: 503:

Which will result in:

Reading the value

getFieldById("issuelinks-linktype") will return a String, i.e "blocks" or "is caused by". getFieldById("issuelinks-issues") will always return an array, even an empty one.

Other operations

If you issuelinks as the identifier it will make both the direction and the issues readonly, required, etc, eg:

groovy
getFieldById('issuelinks').setReadOnly(true)

Alternatively you can operate on either of the individual fields:

groovy
getFieldById('issuelinks-linktype').setReadOnly(true) getFieldById('issuelinks-issues').setReadOnly(true)
On this page