Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-344

Insight objects not auto-populated in set field value screen in A4J

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 7.4.0
    • 7.2.3, 7.3.5
    • Actions
    • None
    • Severity 2 - Major

    Description

      Issue Summary

      When configuring Jira project automations, setting an insight populated custom field value does not work.
      After picking field to set the dropdown for choosing the value does not show any results. This happens on all projects and apparently only for non-admin users.

      This happens with

      • Insights add-on 8.4+ or Jira Service Management 4.15+
      • Automation app 7.2.3+

      Steps to Reproduce

      1. Setup any version of Jira with Automation for Jira and latest version of Insights plugin installed
      2. Define Insight Objects
      3. Create an Insight custom field with the Insights custom field type of 'Insight Object/s'
      4. Log in as user with Project Admin rights, but without global Jira Admin rights
      5. In the Action component of your Automation rule, select your Insight custom field
      6. Try to type characters into the value field for Insight Objects

      Expected Results

      Insight Objects should be pre-populated

      Actual Results

      No objects populate even after you start typing

      Investigation

      Checking the har file for this operation shows that for Jira Administrators the query is formatted something like

      https://<Base-URL>/rest/insight/1.0/iql/objects?iql=objectTypeId=250
      

      while for the non admin it was

      https://<Base-URL>/rest/insight/1.0/objecttype/250/objects?query=xx 
      

      And hence fails with

      Failed to load resource: the server responded with a status of 405 ()
      

      It looks as if JIRAAUTOSERVER-34 has been fixed for Jira Administrators only.

      Workaround

      • Ask a Jira Administrator to set up the rule

      Attachments

        Issue Links

          Activity

            People

              dramotowski Daniel Ramotowski
              cpostma@atlassian.com Conny Postma
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: