Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article you will learn how This article helps to add automatic comment comments every time a new ticket has been is raised in the project.

  • First of all you have to create a following sil script , the following SIL script has to be created:

Code Block
breakoutModewide
languagejava
// gather all required data here
string sum1 = description;
string dat = currentDate();
string rep = getUser(key.reporter)[2];
string title = summary;

// add comment
addComment(key,currentUser(), " Hello " +rep+ " you have raised ticket on : " +dat+ " and description of your ticket is : " +sum1+ " Someone from our team will contact you shortly!");

// then save it to a file to check all raised tickets
printInFile("Raised_tickets_2024.txt", " Ticket number : " + key + " Reported by : "+ rep + " Raised on : "+dat+ " Title : " +title);

in this case we will save our In this example, I’m saving the script as ticket_summary.sil

...

this This script will gather gathers all required data when the ticket has been created, like description, current date, and ticket summary of the ticket. Then, it will add adds a comment and save saves all data in a single text file for future data insights if required, as this script will be triggered without our attention!

  • nowNow, after creating the script has been created , you have to go to > Power Apps Config and click Add listener. In this case, the script will be triggered whenever event the “Issue Created” has occurred event occurs, in other words, when an issue will be created. Also, you have to specify the project where you want this script to work and also locate the script path.

...

  • after After that, whenever an issue has been created you should see this comment :

...

  • also Also, all tickets will be available to see in one file under Raised_tickets_2024.txt

    image-20240115-122931.png