Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Comments on an issue are not included in the Send Web Request payload, any idea why?

Edited

Info

  • Source Jira:
    • Data Center 9.4.5
    • Automation for Jira 8.2.2
  • Target Jira:
    • Data Center 9.4.9
    • Automation for Jira 8.1.2

Issue

  • I want to do a one way sync from 1 instance to another, using the Send Web Request automation action, and the Incoming Webhook on the target
  • When there are comments on the source issue, these do not seem to be included in the payload at all
  • Logging and inspecting {{webookData}} reveals no comment info
  • If I fire the request off to pipedream or similar, I can't see any either
  • jira2.png

Workaround

  • I'm not savvy enough with Advanced edit to create the JSON structure for all of {{comments}}
  • As a workaround, I write the following to a custom field
  • {{#triggerIssue.comments}}
    *Comment by: {{author.displayName}} at: {{created.mediumDateTime}}*




    {{body}}

    ----
    {{/}}
  • This is included in the payload received at the other end, and I can write a single comment to the newly created issue
  • Then for new comments, I just have another pair of rules dealing with each comment, which works fine

Questions

  • Does anyone know why the comments aren't included in the issue data for the Send Web Request action, where Issue Data is selected?
  • Is there a better way to do this, without having to construct the entire JSON object myself as Advanced Field work?

Thanks everyone!

0 answers

Suggest an answer

Log in or Sign up to answer