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

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

@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.

Any updates on this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

3,493 views 6 6
Join discussion

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