Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update custom fields of Assets objects through Jira automation

Anthony December 2, 2023
Hello,

I need help with a Jira automation to fill in custom fields for an issue based on an asset object.
can you help me?
Schema Name: Change Catalog

The automation works partially, the text fields work, the following are the fields that I cannot update.

Platform: Select list single choice type
Asset Type Supplier
Service group: Asset type
Source of change: Asset Type
Affected environment: Select list single choice

object.png
custom field.png
automation 2.pngautomation1.png

1 answer

0 votes
Joseph Chung Yin
Community Champion
December 2, 2023

@Anthony -

Welcome to the community.  Please provide the error that you are receiving when your automation rule executed, so we can review and advise further.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Anthony December 3, 2023

Hi @Joseph Chung Yin 

The error message is as follows: 

An error occurred while requesting remote information
Bad Request
No fields or field values to edit for issues (could be due to some field values not existing in a given project):


I checked and all the custom fields are in the project screens.

error.png
Joseph Chung Yin
Community Champion
December 3, 2023

@Anthony -

Can you confirm if you disable the rule and are able to access all the fields in question via the project UI of the issue - to manually update those fields?

Best, Joseph

Anthony December 3, 2023

Hi @Joseph Chung Yin 

Yes, at the moment I disabled the rule because I couldn't make it work.
I tested and can update all fields manually through the project interface.

Joseph Chung Yin
Community Champion
December 3, 2023

@Anthony -

Can you provide your "Edit issue field" action details (example - "Plataforma" field) and how/what you want to update the field?  Example - How are defining the value to be used in the update?  Since it seems you already configured Jira/JSM custom fields which sourced/mapped to the Assets schema.

Secondly, who is the rule actor of your automation rule?  Does the actor have edit/access rights against your Assets schema?

2023-12-03_16-41-16.png

Best, Joseph

Anthony December 4, 2023

Hi @Joseph Chung Yin 

I removed Automation for Jira and added my user who has full permission to Assets and it didn't work either, follow the automation context and some more screenshots

I have a JSM Portal form that contains a field called pre-approved template.
In other words, when the user chooses a template, in my case "MAIS UM TESTE 6", the Plataforma, Origem da Mudança, Ambiente and Fornecedor fields must be updated in the issue.

automation 3.png

 

 

template 6.png

 

 

issue test.png

Joseph Chung Yin
Community Champion
December 4, 2023

@Anthony -

Can you change your smart value syntax of {{issue.customfield_15294.Plataforma}} by removing ".Plataforma" at the end?  I am assuming that this customfield has already been defined/sourced from your Assets schema object type named Plataforma?

Best, Joseph

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events