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

Assets Automation: Add the ability to add/update/set object attributes like a multi-select in Assets field via Automation

    • 121
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem

      At the moment, we cannot update Insight object attributes having multiple values via Automation by using smart values.

      The Edit Assets field attributes action does not allow to remove/add a specific value from the existing values. It will overwrite the existing value. 

      Suggested Solution

      Similar to Issue Components and Labels Jira field, provide the ability to update the insight field object attribute using advanced JSON that can help using add/update/set operations as mentioned in Advanced field editing using JSON.

      Why This Is Important

      This will help especially when we want to remove a specific value from a multi-value attribute of an object. Due to the limitation, this is not possible at the moment.

      An example use-case can be that a request is raised to remove specific application access for a user. Given we are storing these applications in an Application attribute for an employee object, we cannot remove this attribute via automation and have to perform it manually.

      If there was a provision to remove a particular value, this process could be automated

            [JSDCLOUD-11392] Assets Automation: Add the ability to add/update/set object attributes like a multi-select in Assets field via Automation

            And while you are at it.

            If you currently reference an extra object in an attribute of a different object, the REST API call can become really slow if you already have a lot of referenced objects. I'm talking about 100+ referenced objects. The update of the attribute can take minutes.

            So adding only one new referenced object instead of first getting the current linked object list, add an object to the list and update the attribute will be much easier, safer and faster.

            Rudy Holtkamp added a comment - And while you are at it. If you currently reference an extra object in an attribute of a different object, the REST API call can become really slow if you already have a lot of referenced objects. I'm talking about 100+ referenced objects. The update of the attribute can take minutes. So adding only one new referenced object instead of first getting the current linked object list, add an object to the list and update the attribute will be much easier, safer and faster.

            Hi 7260236ab89d,

            This is also not an option via the API.

            Mentioned is that the PUT action will update the objects attribute values, but they are overwritten.

            Example API call:

            https://api.atlassian.com/jsm/insight/workspace/<workspace_id>/v1/objecttype/<object_id> ,with body
            {
            "attributes":[
            {
            "objectTypeAttributeId":"625",
            "objectAttributeValues":[

            {"value":"7673"}

            ,

            {"value":"18783"}

            ,

            {"value":"7672"}

            ,

            {"value":"7388"}

            ]
            }
            ],
            "objectTypeId":"35",
            "avatarUUID":"",
            "hasAvatar":false
            }

            Marc - Devoteam added a comment - Hi 7260236ab89d , This is also not an option via the API. Mentioned is that the PUT action will update the objects attribute values, but they are overwritten. Example API call: https://api.atlassian.com/jsm/insight/workspace/ <workspace_id>/v1/objecttype/<object_id> ,with body { "attributes":[ { "objectTypeAttributeId":"625", "objectAttributeValues":[ {"value":"7673"} , {"value":"18783"} , {"value":"7672"} , {"value":"7388"} ] } ], "objectTypeId":"35", "avatarUUID":"", "hasAvatar":false }

            Is it possible to have a feedback regarding this? is it something that Atlassian taking it on consideration, or should we try a different solution? 

            Namsi, Mahdi added a comment - Is it possible to have a feedback regarding this? is it something that Atlassian taking it on consideration, or should we try a different solution? 

            Hofer, Johan added a comment - - edited

            Really needed as we are waiting for a long time to continue enhancing our processes. Can be used in so much case helping our different teams to manage assets automatically and having right information in many things (Sofware, security access, servers,...)

            At least having a time of frame when it can be done like this we can choose if we need to develop by our selves or waiting more time to use the "official" way of Atlassian

             

            Hofer, Johan added a comment - - edited Really needed as we are waiting for a long time to continue enhancing our processes. Can be used in so much case helping our different teams to manage assets automatically and having right information in many things (Sofware, security access, servers,...) At least having a time of frame when it can be done like this we can choose if we need to develop by our selves or waiting more time to use the "official" way of Atlassian  

            Having the same use case as mentioned here and this functionality is very crucial for our use-case. Please consider it as high priority.

            Meet Akbari added a comment - Having the same use case as mentioned here and this functionality is very crucial for our use-case. Please consider it as high priority.

            This is a required functionality, prioritizing this benefits us

            Chitvan Mishra added a comment - This is a required functionality, prioritizing this benefits us

            This is a required functionality, prioritizing this benefits us

            Janetlin Anna Kiruba added a comment - This is a required functionality, prioritizing this benefits us

            We need ADD/REMOVE operations support for Asset custom fields. Its a very important use-case for us.

            Nijas Rawther added a comment - We need ADD/REMOVE operations support for Asset custom fields. Its a very important use-case for us.

            this functionality is MUST , please add it

            Artur Garbula added a comment - this functionality is MUST , please add it

            Matt Lane added a comment -

            100% need this functionality to specifically add/remove a particular object from a Asset Object custom field using Automation.

            +1 vote , cheers

            Matt Lane added a comment - 100% need this functionality to specifically add/remove a particular object from a Asset Object custom field using Automation. +1 vote , cheers

              7260236ab89d Justin King
              e87386e27ed9 Simran G
              Votes:
              123 Vote for this issue
              Watchers:
              39 Start watching this issue

                Created:
                Updated: