Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-10177

Insights Automation: Automation smart value functions do not work on the Insight attributes, e.g. to use Send email action for Insight group attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • Assets - Automation
    • None

    Description

      Summary

      Automation functions do not work on the Insight attributes. For example, the datetime functions do not work on the Insight object date or dateTime attributes, the text functions will not work with text type attributes (except for the default Name attribute)

      Steps to Reproduce

      1. Add a date attribute to one of the object types and set a value for an object
      2. Create an automation rule that gets triggered when an object gets updated and add an action to create an issue and try to copy the date attribute of the object to the date custom field of the issue

      Expected Results

      Able to copy the value using the datetime functions:

       {{object.AttributeName.jqlDate}} 

      Actual Results

      The date and time functions do not work on the Insight object date, dateTime attributes. The below smart value is empty:

      {{object.AttributeName.jqlDate}} 
      {{object.AttributeName.toDate}} 
      

      While the below smartvalue returns the date:

      {{object.AttributeName}} 

      Though these functions work on the Created and Updated attributes of the Insight objects.

      {{object.Created.jqlDate}} 

      Workaround

      1. Create a variable "datevar" to store the date value:
        object.AnotherDate
      2. Then use the below functions on the variable name:
         {{datevar.toDate.jqlDate}} 

         We have an example listed on this kb: https://confluence.atlassian.com/display/JIRAKB/Update+Insight+object+attribute+values+using+automation 

      Attachments

        Issue Links

          Activity

            People

              90325da67d46 Mohamed Hassan
              skahol Swati Kahol
              Votes:
              60 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated: