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

Jira Automation copy comments to Custom Fields

Dear Experts of the Atlassian Community,

 

Please follow me allong in the next scenario and help me figure out if this is possible. 

I have some difficulties with establishing a connection with a third party that uses ServiceNow. Particularely when it comes to comments. We're using automation for Jira to do a web request (GET & POST respectively) that will retrieve and send information, using a dedicated integration account (Basic Auth with API token). This all is being done 

I running into an issue with the comments, that whenever the third party's ServiceNow's instance sends us a ticket in our Jira system and makes changes to the ticket including commenting, this works just fine. 
The problem starts when I make a comment afterwards, which triggers the web request and sends the comment back. This is fine, but it also sends all previous comments instead of just the last one. 

So I thought about a workaround to copy the internal and public comments to separate customfields, so these can be mapped. But I am having trouble finding the right smartvalues to put the public comments in Field A and the internal comments in Field B. I used the following configuration in Automation for Jira:

 

Screenshot_690.png

The smartvalue for Field A returns both the public AND internal comments. Field B only returns true/false values. Is there a way to seperate them? 

 

1 answer

1 accepted

0 votes
Answer accepted
Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 28, 2023

@admin-nwalter

 

Take the smart value from your second field and use that as a condition. So if {{comment.properties."sd.public.comment".internal}} equals true, than put the first smart value into internal comment. If it is false, put the smart value into the 1st field.

@Kian Stack Mumo Systems I have tested this out. This works! Thank you very much for your quick response!

Like Kian Stack Mumo Systems likes this
Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 29, 2023

I'm glad I could help!

Suggest an answer

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

Atlassian Community Events