Forums

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

Is there a method of getting the Jira Notification Bell to "ring" when an automation rule completes

Bob.Ford July 28, 2021

We are automating Xray Tests with the use of Jira automation. That all works but what we'd like to have happen is when this rule runs completes a Jira bell notification is sent to Jira so the user sees that it has completed. Below is the Jira "Bell" notification icon I am referring to:

 ScreenHunter 855.png

We know we can send an email but we'd rather be able to send a Jira notification.

Thank you

1 answer

1 accepted

0 votes
Answer accepted
Carlos Faddul
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2021

@Bob.Fordyou can mark / mention the users to show in the notifications (you can create a comment then delete the last comment)

Bob.Ford July 29, 2021

How do I delete the newly added comment if I do not know the {{comment.id}}?

Bob.Ford July 29, 2021

In a nut shell the rule triggers when a description changes. This is what we are doing in the rule:

When: Value changes for
Description

If: all match
Components equals (in any order): DCIM
Issue Type equals Xray Test

Then: Send web request

And: Add value to the audit log

And: Add comment to issue
Notifying [~{{Bob.Ford}}]

When the rule is triggered I am not seeing a comment added to the Xray Test which was modified.

Carlos Faddul
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2021

@Bob.Ford 

 

When: Value changes for
Description

If: all match
Components equals (in any order): DCIM
Issue Type equals Xray Test

Then: Add comment to issue
[~accountId:{{assignee.accountId}}]

 

Try this,

 

And are you enable to send to you auto changes ?

Bob.Ford July 30, 2021

@Carlos Faddul please forgive this simplistic question. How can I find the assignee.accountID?

Thank you for the assistance thus far. I am very greatful.

Carlos Faddul
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2021

@Bob.Ford this is a smart values from automation.

[~accountId:{{assignee.accountId}} -> to mark the assignee of the issue on a comment for an example.

You can user another custom fields of users to make this first link

And the second link, maybe help you to use others fields using more smart values by reference then by user name :)

Bob.Ford August 2, 2021

@Carlos Faddul this is what sort of is working for me

[~accountId:{{user field name.accountId}}]

Example:
[~accountId:5e4babe23011ed0c8f8acde1]

This will add a notification but does not "ring" the bell. What I mean by ringing the bell is showing the red circle letting me know there is a notification. Without the highlighted notification it isn't much better than not adding in a comment at all.

Also you mentioned to add a comment then delete the newly added comment. The only delete comment I see requires a comment ID which I would have no way of knowing. Any suggestions?

Carlos Faddul
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2021

@Bob.Ford  see in this video.

https://www.youtube.com/watch?v=9ERqaPmzi0M

I just recorded this video, I believe it will help a lot.

The automation trigger instead of manual, you can use "Comment issue" and use this conditional that I showed only with the user who triggered the automation (in this case it would be interesting to put more conditions, like "add a label and if it has this label in issue, remove the comment (so you just need to add a few more steps, like edit fields, remove the label))

Bob.Ford August 23, 2021

Sorry for the lag between you last post and my follow up. With all your wonderful help @Carlos Faddul I have the following working:

[~accountId:{{initiator.accountId}}] The validation process was started at {{now}}

Then once completed I do:

[~accountId:{{initiator.accountId}}] The validation process was completed at {{now}}

Only issue I've found with this is that during testing it would not add additional comments as it would say "No new comment was added since this issue has been commented on before"

I don't think that would be a huge issue after being rolled out to a production project as I don't see this rule being triggered for the same ticket multiple times. But if there is a work around for this I'd be all ears. Otherwise you have gone above my expectations.

Thank you very much!

Like Carlos Faddul likes this
Carlos Faddul
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2021

@Bob.Ford  i am glady to helped you.

If this post was helpful, mark it as Accepted Answer, so you can help others who may have the same difficulties.

If your question has not been resolved, please post again with more details.

Suggest an answer

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

Atlassian Community Events