Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

The HQL Validator allows to avoid avoids that an issue is create created via the JIRA Jira 'Create' button if an HQL Action button exists having is able to create issues in the selected Project/Issue Type as target Project/Issue Type.

Recommendations

When applying the HQL Validator, on trying to create an issue, it checks on all mappings having as target destination 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 the Jira 'Create' button too.

Consequently, It's recommended to apply as Partnership Destination Credential an HQL system user.

...

Prerequisites

The Allow issue creation/linking via partnership credentials must be turned  On.

...

  1. Navigate to the Workflow associated to the Project/Issue Type for whom you want avoid issue creation via the JIRA Jira Create button

  2.  Edit the Workflow

  3. Select the Create worrkflow transition

  4. Click Add Validator 

  5. Select the Issue Creation Validator (HQL) and Add it

  6. Publish the draft workflow

 


Info

The HQL Validator has not effect on any Workflow transition other then the Create transion.

...

Login as an user that is not the user applied as Partnership destination credential.

Click the JIRAJira 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.

Notice the issue creation succeeds on any other Project/Issue Type associated to the same workflow where no Approval Mapping exists having as destination Project and Issue Type the selected ones and having the Quick Action Button/Post Function turned On.