Hi Experts,
I am trying to make a Linked Issue and Comment field mandatory on a transition screen via Behavious. But the below script is not working on transition screen.
Kindly help me in fixing the code.
Error message on transition scree :
We couldn't load the UI modifications for this form.
const transitionId = await getContext().then(context => context.extension.issueTransition.id);
const linkedIssue = getFieldById("issuelinks")
const commentField = getFieldById("comment")
if (transitionId == 21) {
linkedIssue.setRequired(true)
commentField.setRequired(true)
}