Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Slack integration - don't show changes done by me

Maximilian Kohl January 4, 2019

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:

jira.PNG

 

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?

2 answers

0 votes
Olga Videc
Community Champion
January 9, 2019

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

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

0 votes
Olga Videc
Community Champion
January 4, 2019

Hello @Maximilian Kohl

This Slack channel, only you use it?

If so maybe this can help

 https://confluence.atlassian.com/jiracoreserver073/managing-your-user-profile-861257126.html?_ga=2.106506627.1425550707.1546598923-899529972.1531837689

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.

https://confluence.atlassian.com/jirasoftwarecloud/advanced-searching-functions-reference-764478342.html

https://confluence.atlassian.com/jiracoreserver073/advanced-searching-operators-reference-861257221.html?_ga=2.106496003.1425550707.1546598923-899529972.1531837689

CHANGED

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

Examples
  • 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()
Maximilian Kohl January 4, 2019

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:

  1. How can I write CHANGED BY NOT "me"? The only possible way is duplicating it x times to include the x team members that are not me.
  2. When I do ASSIGNEE CHANGED BY "Mary", does Jira Slack send a notification if the issue had been changed by Mary but the action by which is triggered is ASSIGNEE CHANGED BY "Paul"?

Thanks a lot for your help!

Olga Videc
Community Champion
January 7, 2019

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

Maximilian Kohl January 7, 2019

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

Olga Videc
Community Champion
January 9, 2019

Hello @Maximilian Kohl

Don't think so, try one or two if it work's for those it should work for others.

Olga Videc
Community Champion
January 9, 2019

Suggest an answer

Log in or Sign up to answer