hi,
I am trying to automate the creation of release note on jira by python
the following is the jira screenshot about how to create a release note on Jira in manual way

the following is my python code
-----------------------------------------------------------------------------------------------------
from jira import JIRA
from jira.client import JIRA
import cgi
import requests
import re
from requests.packages.urllib3.exceptions import InsecureRequestWarning
import sys
import json
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
jira_server = 'https://pd.nextestate.com'
jira_user = 'szhang1'
jira_password = 'myPasswordHere' #pls input your correct password here
jira_server = jira_server
jira_project_key = 'Transactions and Money Movement'
options = {
'server': jira_server
}
jira = JIRA(options, basic_auth=(jira_user, jira_password))
projectKey='Legacy(LEG)'
ChangeLIST='12345' #customfield_14305
ScriptExecutionOrder=' Update_PartnerProgramConfiguration_20210906.sql' #customfield_14303
issueLinkType ="relates to"
storyID='MOTX-73337'
storySummary='MM- 15k bin update at retailer'
inward_issue_key='MOTX-73337'
outward_issue_key='MOTX-73337'
ReleaseNoteTemplate = {
'project' : { 'key' : 'LEG' },
'issuetype' : { 'name' : 'Release Note' },
'summary' : storySummary,
'customfield_14300' : [{'value': 'Database'}],
'customfield_14303' : ScriptExecutionOrder ,
'customfield_14305' : ChangeLIST ,
"issuelinks": [
{
"add": {
"type": {
"name": "relates to"
},
"inwardIssue": {
"key": inward_issue_key
}
}
}
]
}
child = jira.create_issue(fields=ReleaseNoteTemplate,issue=storyID)
print("created child lev2: " + child.key +" For "+issue+ " "+ storySummary )
--------------------------------------------------------------------------------------------------
I am always getting the following error when executing above python script
raise JIRAError(
jira.exceptions.JIRAError: JiraError HTTP 400 url: https://pd.nextestate.com/rest/api/2/issue
text: Field does not support update 'issuelinks'
response headers = {'X-AREQUESTID': '1407x1400765x1', 'X-ASESSIONID': '1w9w5rq', 'X-ANODEID': 'g1node02', 'Referrer-Policy': 'strict-origin-when-cross-origin', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'Content-Security-Policy': "frame-ancestors 'self'", 'Strict-Transport-Security': 'max-age=31536000', 'X-Seraph-LoginReason': 'OK', 'X-AUSERNAME': 'szhang1', 'Cache-Control': 'no-cache, no-store, no-transform', 'Content-Encoding': 'gzip', 'Vary': 'User-Agent', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Date': 'Sun, 10 Oct 2021 06:27:07 GMT', 'Connection': 'close'}
response text = {"errorMessages":[],"errors":{"issuelinks":"Field does not support update 'issuelinks'"}}
could you please provide guidance how to resolve such issue so that the release note can be created by python code just like manual way