Forums

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

Update Object Attribute from Web Response Data - A4J

Muhammet Ayal
Atlassian Partner
February 12, 2023

Hey team, 

I'm getting the following JSON data with the web response. With Advanced Branch, I can find licenseIds with individual values and create an object for each of them. But how can I set other values returned from the JSON data to the attributes for each object? Is there a solution proposal for this?

How can I set each object attribute 

  • {{webResponse.body.contactDetails.company}}
  • {{webResponse.body.contactDetails.country}}
  • and other items?

 

Rule details and Web Response Body:

Ekran Resmi 2023-02-12 20.02.40.pngEkran Resmi 2023-02-12 20.02.55.pngEkran Resmi 2023-02-12 20.03.05.png

 

 

{addonLicenseId=E-3YX-EWxxxxx, appEntitlementId=e30xxxx-df-30cd-9d32-65961d728b3f, appEntitlementNumber=E-3xxxxxC-9ZG-9K4, hostLicenseId=368xxx152, hostEntitlementId=6947xxxxxxxb-4361-ac2d-aa486d4e05bd, hostEntitlementNumber=E-3xxxxxxx7F-3UT, licenseId=SEN-3xxxx52, addonKey=com.spacre.organizationalchart, addonName=Organizational Chart for Jira, hosting=Cloud, lastUpdated=2023-02-09, licenseType=EVALUATION, maintenanceStartDate=2023-02-09, maintenanceEndDate=2023-03-11, status=active, tier=Subscription, contactDetails={company=vicxxxxxxxxn, country=Unknown, region=Unknown, technicalContact={email=vicxxxxxxson@xxxxxtions.com, name=Vixxxx}, billingContact={email=vicxxxxxxson@xxxxxtions.com, name=Vixxxxxx}}}, {addonLicenseId=3xxxx235, appEntitlementId=0xxxxx9-1xxxxxxa-0f8927a529cf, appEntitlementNumber=E-3YXxxxxxxxx3, hostLicenseId=3xxxxx3, hostEntitlementId=b7adxxxxxx44c-a546-7484c1af7f69, hostEntitlementNumber=E-3xxxxxxxxxEJ, licenseId=SEN-3xxxxxx3, addonKey=net.werare.jira.attachmentmanager, addonName=Attachment Manager, hosting=Cloud, lastUpdated=2023-02-09, licenseType=EVALUATION, maintenanceStartDate=2023-02-09, maintenanceEndDate=2023-03-27, status=active, tier=Subscription, contactDetails={company=bxxxxxxxst, country=Israel, region=EMEA, technicalContact={email=elixxxxxa@maxxxxxx.co.il, name=Exxxxx}, billingContact={email=elxxxxxxx@maxxxxxxx.il, name=Exxxxx}}},

1 answer

0 votes
Joseph Chung Yin
Community Champion
February 12, 2023

@Muhammet Ayal -

Welcome to the community.  Question - Were you able to create the object successfully with your automation rule?  If so, I would believe that you can just reference to JSON attributes to set the attributes at the same time that you are creating the objects.

Here is a link on smart value when dealing with Assets objects - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/

I also recommend you seek assistance with Atlassian Support (https://support.atlassian.com) for additional information/guidance.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Muhammet Ayal
Atlassian Partner
February 12, 2023

@Joseph Chung Yin Hi, thanks for your back.

But as you can see I set the whole details but I am stuck one point.

I know the smart values as I mentioned above. 

Ok I will try to get support from Atlassian. 

Muhammet Ayal
Atlassian Partner
February 14, 2023

@Joseph Chung Yin 

I got the solution

You have to get every raw as dynamically. 

 

Screen Shot 2023-02-14 at 21.22.21.png

Like Joseph Chung Yin likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events