Forums

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

How to parse this in Jira Automation (CIPP Alert)

Sal
Contributor
September 17, 2024

Hi there

We have set up CIPP-Alerting (MSP's will know) which sends us data through a webhook. I can't parse the data in automation. I've tried

  • {{webhookData.TaskInfo.Tenant}}
  • {{webhookData.Results}}
  • etc...

But the variables are always empty. Do you have any idea on how to access these fields?

 

The data looks as follows:

 

 

{TaskInfo={AdditionalProperties={}, TaskState=Planned, Timestamp=2024-09-17T09:35:41.6335522+00:00, ScheduledTime=1726566297, PartitionKey=ScheduledTask, RowKey=xxx, Results=Planned, Recurrence=7d, Hidden=true, Tenant=AllTenants, Name=Alert on unused licenses for AllTenants, PostExecution=Webhook, Command=Get-CIPPAlertUnusedLicenses, ETag=W/"datetime'2024-09-17T09%3A35%3A41.6335522Z'", Parameters={}}, Results=[O365_BUSINESS_ESSENTIALS has unused licenses. Using 9 of 11., RIGHTSMANAGEMENT_ADHOC has unused licenses. Using 0 of 50000.], Tenant=xxx}

or after beautifying

{ "TaskInfo="{

   "AdditionalProperties="{ },

   "TaskState=Planned",

   "Timestamp=2024-09-17T09":"35":"41.6335522+00":00,

   ScheduledTime=1726566297,

   "PartitionKey=ScheduledTask",

   RowKey=XXX,

   "Results=Planned",

   Recurrence=7d,

   "Hidden=true",

   "Tenant=AllTenants",

   "Name=Alert on unused licenses for AllTenants",

   "PostExecution=Webhook",

   "Command=Get-CIPPAlertUnusedLicenses",

   "ETag=W/""datetime'2024-09-17T09%3A35%3A41.6335522Z'",

   "Parameters="{ }

},

"Results="[

   O365_BUSINESS_ESSENTIALS has unused licenses. Using 9 of 11.,

   RIGHTSMANAGEMENT_ADHOC has unused licenses. Using 0 of 50000.

],

   Tenant=XXX }

 

 

Cheers!

1 answer

1 accepted

0 votes
Answer accepted
Sal
Contributor
September 26, 2024

Layer 8 issue... I used a lookup table and forgot to reference to the table...

 

Suggest an answer

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

Atlassian Community Events