I use Jira Server Alerts in Slack through a webhook. I would like to see all changes (this works) but not the ones where I did the change:
Choosing assignee in JQL does not work, as for example I don't need to be assigned but only write a comment. Do you have an idea?
Hello @Maximilian Kohl
This should work, you need scriptrunner but all you need to do is create a group that contains all the people but you, issueFunction in lastUpdated("inGroup TEST")
and add this JQL to your slack webhook and it will only alert you when a user from this group updates the ticket.
lastUpdated (by / inRole / inGroup)
Finds issues by the user who last updated them. Example, find all issues that were last updated by members of the Developers role:
issueFunction in lastUpdated('inRole Administrators')
Last updated comprises the following actions:
edits
state changes
adding/removing links, labels etc
commenting
Hello @Maximilian Kohl
This Slack channel, only you use it?
If so maybe this can help
Slack webhook works based on JQL there is no JQL to filter "updated by specific user" but maybe you could figure something out, for example using changed, check this advanced searching options maybe you could figure something out.
The "CHANGED
" operator is used to find issues that have a value that had changed for the specified field.
This operator has the following optional predicates:
AFTER "date"
BEFORE "date"
BY "username"
DURING ("date1","date2")
ON "date"
FROM "oldvalue"
TO "newvalue"
(Note: This operator can be used with the Assignee, Fix Version, Priority, Reporter, Resolution, and Status fields only.)
Find issues whose assignee had changed:
assignee CHANGED
Find issues whose status had changed from 'In Progress' back to 'Open':
status CHANGED FROM "In Progress" TO "Open"
Find issues whose priority was changed by user 'freddo' after the start and before the end of the current week.
priority CHANGED BY freddo BEFORE endOfWeek() AFTER startOfWeek()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick reply, Red.
I use a project with a team. When I use CHANGED I have two questions I need to figure out:
Thanks a lot for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
1. The issue is that you can't write NOT BY ME but you can CHANGED BY (Mary, Tom, etc...) an exclude your self from that list.
For example, this status changed by (Mary, Tom) you add this JQl to your slack webhook so it will only post on slack if the issue matches the JQL
2. This trigger happens by automation?
You can test it, add this to you slack, assignee changed by (Mary, Tom) // so Paul is excluded and trigger it.
BR, Olga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. I will try the first. If I understood correctly this requires me to go through every possible change and set them for all team members I want to include.
Kind regards,
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Maximilian Kohl
Don't think so, try one or two if it work's for those it should work for others.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Maximilian Kohl
Also, check this part out
https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.