Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Adding conditional logic to the Json body in Create Jira request

(0) ShareShare
ReportReport
Posted on by 609

 

when creating Jira Issues with the Create Issue V2 connector  I want to be able embed some conditional logic  into my Json body depending on if I have a Assignee Id, Reporter Id or Approver Id.   If these we all supplied in my request then everything is ok .

 

However, I don't seem to be able to inject my json snippet with conditional logic  as the flow will complain with a json schema error.

 

westerdaled_0-1660818197141.png

 

westerdaled_2-1660818441144.png

Here is the above If statement:

if(!empty(outputs('Compose_-_Reporter_Id')), outputs('Compose_-_Reporter_Id_in_Json'))

 

I am thinking is there way to turn off the Json schema validation .  I suspect this issue with hit other connectors so has anyone found a work around?

  • vayinapurapu1 Profile Picture
    vayinapurapu1 233 on at
    Re: Adding conditional logic to the Json body in Create Jira request

    have you tried using filter array for your action? Damon has written a nice blog on a similar use case

    If, Else If, Else in Power Automate Simplified - DamoBird365

    Hope this helps.

    Cheers,

    Vinay. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics