Set Work Item Security Level component fails if actor is not a site administrator

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      Currently, if the actor of the rule is not a site administrator, the action component Set Work Item Security Level will fail.

      Steps to Reproduce

      1. Create an automation rule on a given project that has a work item security scheme where the actor is not a site admin, but has the following permissions:
        • Is part of the security level;
        • Has permissions Browse Project, Set Issue Security Level, and Edit Issue.
      2. Configure a Set Work Item Security Level component on it, setting the security level.
      3. Verify the automation fails with the following error message:

        We couldn't find details of a work item Security Scheme for this work item's project. Check the rule actor's permissions and try again.

      Expected Results

      Security level should be applied to the work item if the actor:

      • Is part of the security levels in question;
      • Has permissions Browse Project, Set Issue Security Level, and Edit Issue.

      This would match the expectations a manual update would require.

      Actual Results

      The automation fails as it's unable to get a successful response from the endpoint Get issue security schemes, indicating the following:

      We couldn't find details of a work item Security Scheme for this work item's project. Check the rule actor's permissions and try again.

      Workaround

      Users can update the rules to use the action component Edit Work Item (updating the field Security Level) instead of the Set Work Item Security Level.

            Assignee:
            Unassigned
            Reporter:
            Danieli Barboza
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: