The HQL Validator allows to avoid that an issue is create via the JIRA 'Create' button if an HQL Action button exists having the selected Project/Issue Type as target Project/Issue Type.
When applying the HQL Validator, on trying to create an issue, it checks on all mappings having as target Project and Issue Type the selected ones and having the Quick Action Button/Post Function turned On in order to allow the issue creation to the users configured as Partnership Destination Credential on the associated Partnerships exclusively.
It implies that these users will be able to create an issue via the JIRA 'Create' button too.
Consequently, It's recommended to apply as Partnership Destination Credential an HQL system user.
The Allow issue creation/linking via partnership credentials must be turned On.
Adding the HQL Validator to the Create workflow transition
Navigate to the Workflow associated to the Project/Issue Type for whom you want avoid issue creation via the JIRA Create button
Edit the Workflow
Select the Create worrkflow transition
Click Add Validator
Select the Issue Creation Validator (HQL) and Add it
Publish the draft workflow
The HQL Validator has not effect on any Workflow transition other then the Create transion.
How it works
Consider the following Approval Mapping
having the Allow issue creation/linking via partnership credentials turned ON
and associated to the following Partnership
The HQL Validator has been added on the Create transition of the workflow associated to the Destination Project and Issue Type.
Consider that user has privileges to create issue in the destination Project 'Process Management'.
Login as an user that is not the user applied as Partnership destination credential.
Click the JIRA Create button the Destination Project and Issue Type applied on the Approval Mapping.
On clicking Create
the following alert appears and issue creation in not allowed.