@@ -402,6 +402,40 @@ tag_entities_action_config = {
402402 ]
403403}
404404
405+ create_jira_ticket_action_config = {
406+ " integrationInstanceId" : " 5b0eee42-60f5-467a-8125-08666f1383da" ,
407+ " type" : " CREATE_JIRA_TICKET" ,
408+ " entityClass" : " Record" ,
409+ " summary" : " Jira Task created via JupiterOne Alert Rule" ,
410+ " issueType" : " Task" ,
411+ " project" : " PROS" ,
412+ " additionalFields" : {
413+ " description" : {
414+ " type" : " doc" ,
415+ " version" : 1 ,
416+ " content" : [
417+ {
418+ " type" : " paragraph" ,
419+ " content" : [
420+ {
421+ " type" : " text" ,
422+ " text" : " {{ alertWebLink}} \n\n **Affected Items:**\n\n * {{ queries.query0.data|mapProperty('displayName')|join('\n * ')}} "
423+ }
424+ ]
425+ }
426+ ]
427+ },
428+ " j1webLink" : " {{ alertWebLink}} " ,
429+ " customfield_1234" : " text-value" ,
430+ " customfield_5678" : {
431+ " value" : " select-value"
432+ },
433+ " labels" : [
434+ " label1" ," label2"
435+ ],
436+ }
437+ }
438+
405439j1.create_alert_rule(name = " create_alert_rule-name" ,
406440 description = " create_alert_rule-description" ,
407441 tags = [' tag1' , ' tag2' ],
@@ -462,6 +496,40 @@ alert_rule_config_webhook = [
462496 }
463497]
464498
499+ create_jira_ticket_action_config = {
500+ " integrationInstanceId" : " 5b0eee42-60f5-467a-8125-08666f1383da" ,
501+ " type" : " CREATE_JIRA_TICKET" ,
502+ " entityClass" : " Record" ,
503+ " summary" : " Jira Task created via JupiterOne Alert Rule" ,
504+ " issueType" : " Task" ,
505+ " project" : " PROS" ,
506+ " additionalFields" : {
507+ " description" : {
508+ " type" : " doc" ,
509+ " version" : 1 ,
510+ " content" : [
511+ {
512+ " type" : " paragraph" ,
513+ " content" : [
514+ {
515+ " type" : " text" ,
516+ " text" : " {{ alertWebLink}} \n\n **Affected Items:**\n\n * {{ queries.query0.data|mapProperty('displayName')|join('\n * ')}} "
517+ }
518+ ]
519+ }
520+ ]
521+ },
522+ " j1webLink" : " {{ alertWebLink}} " ,
523+ " customfield_1234" : " text-value" ,
524+ " customfield_5678" : {
525+ " value" : " select-value"
526+ },
527+ " labels" : [
528+ " label1" ," label2"
529+ ],
530+ }
531+ }
532+
465533alert_rule_config_multiple = [
466534 {
467535 " type" : " WEBHOOK" ,
0 commit comments