Hello to all. This is my first post on Habré - please do not judge strictly.
Not so long ago I got a job. I work as the Administrator of the system, which is used in one large bank. Bank departments are located throughout the country.
I receive error messages about work that the JIRA bug tracker registers, programmers call, write, bankers (who will be redirected to HelpDesk to me), remote workers and testers.
')
JIRA has created several workflows for several projects. And everything would be great. But it became necessary to create new workflows, the actions in which will be performed mainly by people from the business - i.e. sellers of banking services - they will also be the final testers.
These people are of course very busy, they do not like when they are called by the Administrators, programmers, people with IT. They do not like, mainly because they do not understand what they want from them. And some test tasks "hang" on them for weeks.
So, in the new workflow, it was necessary to simplify everything, as well as optimize the process of communication with “people from business”.
Since all tasks are registered in JIR, it was necessary to create a mechanism that would notify testers who did not take any action for 2 days. Warned not very nasty - i. for 2 days sent them a notice by e-mail.
How to do it in JIRA, I will tell
JIRA can send email notifications if someone comments on a task, creates a new one, and assigns a specific user or task changes its status.
We also needed to notify users if the task was created, but the user did not do anything with it.
Walking through the Internet, I realized that the most information about JIRA can only be found on the
“manufacturer” page, as well as on the
JIRA forum.
JIRA has its own scripting language - Jelly Runner, which I used.
So, in order for a user to receive an e-mail notification, if he didn’t do anything with the task 2 days later:
1. Create a filter that will find jobs with the status we need, for example, “new”, which has not changed its status for 2 days.
2. Create a script in Jelly Runner:
<JiraJelly xmlns: jira = "jelly: com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns: core = "jelly: core" xmlns: log = "jelly: log">
<jira: Login username = "support" password = "[your password]">
<log: warn> Start the service </ log: warn>
<! - Script Properties ->
<core: set var = "comment"> The job status has not changed for 2 days.
And then the text of the instructions that the user must do.
Respectfully,
Support Team </ core: set>
<core: set var = "workflowStep" value = "Mark Inactive" />
<core: set var = "workflowUser" value = "support" />
<core: set var = "filter2Days" value = "11202" />
<! - Runs a filter that searches for jobs ->
<jira: RunSearchRequest filterid = "$ {filter2Days}" var = "issues" />
<core: forEach var = "issue" items = "$ {issues}">
<log: warn> New assignment $ {issue.key} </ log: warn>
<jira: TransitionWorkflow key = "$ {issue.key}" user = "$ {workflowUser}" workflowAction = "$ {workflowStep}" comment = "$ {comment}" />
</ core: forEach>
</ jira: Login>
</ JiraJelly>
The script searches for such tasks and adds a comment to them - JIRA automatically notifies the user that a comment has been added to the task.
That's all the solution.
If there are any mistakes, then I ask you not to scold me, because I use Russian very rarely.