Hi
I am very new to scripting. I have a requirement to set Issue linking mandatory while creating an issue.
I have to set Linked issues to "is part of" (inward link) and also in issues field, it should only show tickets from that same project only.
However to make it mandatory I used behavior and added below code.
getFieldById("issuelinks-linktype").setFormValue("is part of").setReadOnly(true)
getFieldById('issuelinks-issues').setReadOnly(false)
for some part, it is working fine. It is making issue linking mandatory while creating the issue also link type is set to "Is part of"
But the main problem is whenever I am trying to edit one issue, at that time even if there is already an existing link it is again asking to fill in the linking issue-issue filed.
and is it possible to show issue from the same project only in that issue filed?
any help would be highly appreciable.