autotransition with comment Edited

As you know, in Jira Service Desk I can add screen to transition. So in our Resolve transition there is a screen, where we can add comment (resolution text).
This is comfortable because our customer will recieve only one notification (Issue Resolved) that including comment from transition screen.

So problem is:
we are added script (Power Scripts for Jira plugin) which do autotransition and comment. But customer recieve two separate notifications (issue resolved, issue commented).
Is there any way to improve autotransition routine and add a comment parameter. Or somehow else to make it in one step (with only issue resolved event)

2 answers

This widget could not be displayed.

Hi,

I think you could just  in the post function of the transition which sends issues commented notification , replace it by generic event.

this transition have postfunction fires Issue Resolved event. Thats correct.

could you tell me what is the post function in the second transition ?

You didnt understand. There is only one transition - Resolve. It have transition screen, where i can write comment on transaction.

So if Im doing it in Service Desk manually - Resolve + write comment = Only one event fires - Issue Resolved. And my email notification have Resolve template with comment from this transition.

 

But if im doing transition with SIL script with code like:

addComment(key, "user1", "my comment here");
autotransition("Resolve", key,true,true,true) ;

It fires Issue Commented and Issue Resolved events separately

Ok where did you exucute this sil script ? in a transition ?

no matter from where, tried different ways. From automation rules, from issue view (Live Fields) etc

Ok i think that i have understood your problem

could you check you notification scheme ? i think you have enabled notification when issue is commented

yes, and i need it.

You still dont understand what i want. :)

If im doing comment and resolving though servise desk transition screen i have one big email.

If im doint it with scrip i have 2 small. Issue resolved notification havent comment inside his body - thats the problem!

OK :)

could you try to customize you mail using send mail routine in power script

https://confluence.cprime.io/display/SIL/sendEmail

and disable the issue resolved notification?

nope, i cant disable issue resolved, because we are mostly using JSD interface. SCript is rare

This widget could not be displayed.

@Evgeniy Russkikh Thanks for opening a support ticket with cPrime. This has been added as a product enhancement and we will try to keep you posted on the status.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 25, 2018 in Marketplace Apps

Jira Cloud and Bitbucket Cloud Integration with Microsoft Teams

One of the newest products in the Microsoft family - Microsoft Teams,  is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...

727 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you