I have a Field Definition macro set to Field Type = Jira issue
Upon entering the issuekey, e.g. ABDC-123, the issue is located. Upon clicking and selecting the issue and then clicking outside the box, the issuekey and summary are displayed in a popup below the box.
Currently if the user submits any issue other than an Epic, a Jira error message is returned to the page.
I'd like the Field macro to verify that the issuekey provided by the user is of Epic issue type before they submit. So if a key of any other issue type is entered then an error message should show e.g. "Only Issue Type Epic can be submitted"
Any suggestions on how to set this validation and error message?