Uploaded image for project: 'Minyaa Suite'
  1. Minyaa Suite
  2. MYAA-187

When using a Permission Validator as a validation at issue creation or edition, the error message is not properly shown if the user doesnt have the persmission

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.5
    • None
    • None
    • Security Level: Public
    • None

      This workflow was used:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE workflow PUBLIC "-//OpenSymphony Group//DTD OSWorkflow 2.8//EN" "http://www.opensymphony.com/osworkflow/workflow_2_8.dtd">
      <workflow>
        <meta name="jira.update.author.name">admin</meta>
        <meta name="jira.updated.date">1249933192063</meta>
        <meta name="jira.description"></meta>
        <initial-actions>
          <action id="1" name="Create Issue">
            <meta name="jira.i18n.title">common.forms.create</meta>
      		
            <validators>
              <validator name="" type="class">
                <arg name="class.name">com.atlassian.jira.workflow.validator.PermissionValidator</arg>
                <arg name="permission">Create Issue</arg>
              </validator>
            		<validator name="" type="class">
      			<arg name="class.name">
      				com.atlassian.jira.workflow.validator.PermissionValidator
      			</arg>
      			<arg name="permission">project</arg>
      		</validator>
            </validators>
            <results>
              <unconditional-result old-status="Finished" status="Open" step="1">
                <post-functions>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueCreateFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="eventTypeId">1</arg>
                    <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                  </function>
                </post-functions>
              </unconditional-result>
            </results>
          </action>
        </initial-actions>
        <common-actions>
          <action id="2" name="Close Issue" view="resolveissue">
            <meta name="jira.i18n.title">closeissue.title</meta>
            <meta name="jira.i18n.submit">closeissue.close</meta>
            <meta name="jira.i18n.description">closeissue.desc</meta>
            <restrict-to>
              <conditions type="AND">
                <condition type="class">
                  <arg name="class.name">com.atlassian.jira.workflow.condition.PermissionCondition</arg>
                  <arg name="permission">Resolve Issue</arg>
                </condition>
                <condition type="class">
                  <arg name="class.name">com.atlassian.jira.workflow.condition.PermissionCondition</arg>
                  <arg name="permission">Close Issue</arg>
                </condition>
              </conditions>
            </restrict-to>
            <results>
              <unconditional-result old-status="Finished" status="Closed" step="6">
                <post-functions>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="eventTypeId">5</arg>
                    <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                  </function>
                </post-functions>
              </unconditional-result>
            </results>
          </action>
          <action id="4" name="Start Progress">
            <meta name="jira.i18n.title">startprogress.title</meta>
            <restrict-to>
              <conditions type="AND">
                <condition type="class">
                  <arg name="class.name">com.atlassian.jira.workflow.condition.AllowOnlyAssignee</arg>
                </condition>
                <condition type="class">
                  <arg name="class.name">com.atlassian.jira.workflow.condition.AllowEstimateNotNull</arg>
                </condition>
              </conditions>
            </restrict-to>
            <results>
              <unconditional-result old-status="Finished" status="Underway" step="3">
                <post-functions>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction</arg>
                    <arg name="field.name">resolution</arg>
                    <arg name="field.value"></arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="eventTypeId">11</arg>
                    <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                  </function>
                </post-functions>
              </unconditional-result>
            </results>
          </action>
          <action id="3" name="Reopen Issue" view="commentassign">
            <meta name="jira.i18n.title">issue.operations.reopen.issue</meta>
            <meta name="jira.i18n.submit">issue.operations.reopen.issue</meta>
            <meta name="jira.i18n.description">issue.operations.reopen.description</meta>
            <restrict-to>
              <conditions>
                <condition type="class">
                  <arg name="class.name">com.atlassian.jira.workflow.condition.PermissionCondition</arg>
                  <arg name="permission">Resolve Issue</arg>
                </condition>
              </conditions>
            </restrict-to>
            <results>
              <unconditional-result old-status="Finished" status="Reopened" step="5">
                <post-functions>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction</arg>
                    <arg name="field.name">resolution</arg>
                    <arg name="field.value"></arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="eventTypeId">7</arg>
                    <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                  </function>
                </post-functions>
              </unconditional-result>
            </results>
          </action>
          <action id="5" name="Resolve Issue" view="resolveissue">
            <meta name="jira.i18n.title">resolveissue.title</meta>
            <meta name="jira.i18n.submit">resolveissue.resolve</meta>
            <meta name="jira.i18n.description">resolveissue.desc.line1</meta>
            <restrict-to>
              <conditions type="AND">
                <condition type="class">
                  <arg name="class.name">com.atlassian.jira.workflow.condition.PermissionCondition</arg>
                  <arg name="permission">Resolve Issue</arg>
                </condition>
                <condition type="class">
                  <arg name="class.name">com.atlassian.jira.workflow.condition.AllowEstimateToNull</arg>
                </condition>
              </conditions>
            </restrict-to>
            <results>
              <unconditional-result old-status="Finished" status="Resolved" step="4">
                <post-functions>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                  </function>
                  <function type="class">
                    <arg name="eventTypeId">4</arg>
                    <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                  </function>
                </post-functions>
              </unconditional-result>
            </results>
          </action>
        </common-actions>
        <steps>
          <step id="1" name="Open">
            <meta name="minyaa.jira.issue.workable">false</meta>
            <meta name="jira.status.id">1</meta>
            <actions>
      <common-action id="4" />
      <common-action id="5" />
      <common-action id="2" />
            </actions>
          </step>
          <step id="3" name="In Progress">
            <meta name="minyaa.jira.issue.worklogtype.required">true</meta>
            <meta name="jira.status.id">3</meta>
            <actions>
      <common-action id="5" />
      <common-action id="2" />
              <action id="301" name="Stop Progress">
                <meta name="jira.i18n.title">stopprogress.title</meta>
                <restrict-to>
                  <conditions>
                    <condition type="class">
                      <arg name="class.name">com.atlassian.jira.workflow.condition.AllowOnlyAssignee</arg>
                    </condition>
                  </conditions>
                </restrict-to>
                <results>
                  <unconditional-result old-status="Finished" status="Assigned" step="1">
                    <post-functions>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction</arg>
                        <arg name="field.name">resolution</arg>
                        <arg name="field.value"></arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="eventTypeId">12</arg>
                        <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                      </function>
                    </post-functions>
                  </unconditional-result>
                </results>
              </action>
            </actions>
          </step>
          <step id="4" name="Resolved">
            <meta name="jira.status.id">5</meta>
            <actions>
      <common-action id="3" />
              <action id="701" name="Close Issue" view="commentassign">
                <meta name="jira.i18n.title">closeissue.title</meta>
                <meta name="jira.i18n.submit">closeissue.close</meta>
                <meta name="jira.i18n.description">closeissue.desc</meta>
                <meta name="jira.description">Closing an issue indicates there is no more work to be done on it, and it has been verified as complete.</meta>
                <restrict-to>
                  <conditions>
                    <condition type="class">
                      <arg name="class.name">com.atlassian.jira.workflow.condition.PermissionCondition</arg>
                      <arg name="permission">Close Issue</arg>
                    </condition>
                  </conditions>
                </restrict-to>
                <results>
                  <unconditional-result old-status="Finished" status="Closed" step="6">
                    <post-functions>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="eventTypeId">5</arg>
                        <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                      </function>
                    </post-functions>
                  </unconditional-result>
                </results>
              </action>
            </actions>
          </step>
          <step id="5" name="Reopened">
            <meta name="jira.status.id">4</meta>
            <actions>
      <common-action id="5" />
      <common-action id="2" />
      <common-action id="4" />
            </actions>
          </step>
          <step id="6" name="Closed">
            <meta name="jira.issue.editable">false</meta>
            <meta name="jira.status.id">6</meta>
            <actions>
      <common-action id="3" />
            </actions>
          </step>
        </steps>
      </workflow>
      
      

            vthoule Vincent Thoulé
            vthoule Vincent Thoulé
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m Time Not Required
                1h 20m