|
1 | 1 | # RollbarAutoAssignment
|
2 |
| -Auto Assign Items in Rollbar based on rules |
| 2 | +Auto Assign Items in Rollbar based on custom rules per project for both new OR reactivated items. |
| 3 | + |
| 4 | +Download Docker Image: https://hub.docker.com/repository/docker/nkruger/rollbarautoassignment |
| 5 | + |
| 6 | +# How to configure |
| 7 | + |
| 8 | +1. Get your current Rollbar Account Access Token (read or write) from https://rollbar.com/settings/accounts/ACCOUNT_NAME/access_tokens/ |
| 9 | + |
| 10 | + This Access Token will be used to setup the WebHook. |
| 11 | +2. Create a new WebHook in your Rollbar project under the notifications.https://rollbar.com/ACCOUNT_NAME/PROJECT_NAME/settings/notifications/ |
| 12 | +3. Enter the URL that the WebHook will send the payload to. |
| 13 | + |
| 14 | + Example: https://yourhostedserver/api/rollbar/ACCOUNTACCESSTOKEN |
| 15 | +5. Your webhook is no complete and Rollbar will send payloads to this as configured in your notification options. |
| 16 | + |
| 17 | + |
| 18 | +# How to configure the Auto Assignment Rules |
| 19 | + |
| 20 | +1. The Auto Assignment works based on a set of configured rules (Json format). |
| 21 | +2. Rules are executed top down in that order. If a match is found the rule is applied and the process terminates to perform the assignment. |
| 22 | + |
| 23 | + Rules can be viewed from the API here (GET): https://yourhostedserver/api/assignmentrules |
| 24 | + |
| 25 | + Rules can be updated from the API here (POST): https://yourhostedserver/api/assignmentrules/ACCOUNTACCESSTOKEN the body is the Json Rules. |
| 26 | +4. Example of a basic rule: |
| 27 | +``` Json |
| 28 | +[ |
| 29 | + { |
| 30 | + "project_id": 1234, |
| 31 | + "event_name": "new_item", |
| 32 | + "rules": [ |
| 33 | + { |
| 34 | + "field": "title", |
| 35 | + "matchtype": "contains", |
| 36 | + "value": "word" |
| 37 | + } |
| 38 | + ], |
| 39 | + "assign_to_username": "usernameA" |
| 40 | + }, |
| 41 | + { |
| 42 | + "project_id": 1234, |
| 43 | + "event_name": "reactivated_item", |
| 44 | + "rules": [ |
| 45 | + { |
| 46 | + "field": "title", |
| 47 | + "matchtype": "equals", |
| 48 | + "value": "word" |
| 49 | + } |
| 50 | + ], |
| 51 | + "assign_to_username": "usernameB" |
| 52 | + } |
| 53 | +] |
| 54 | +``` |
| 55 | + |
| 56 | +5. Fields available: |
| 57 | + |
| 58 | + 'title', 'root', 'environment', 'framework', 'host', 'language', 'level', 'url' |
| 59 | +7. Matchtypes available (string value): |
| 60 | + |
| 61 | + 'contains', 'equals', 'startswith' |
| 62 | +9. Values that can be suplied: |
| 63 | + |
| 64 | + String based value could be a number or any other value (string). |
| 65 | + |
| 66 | +10. The assign_to_username needs to be exact as the service performs a lookup to identify the user_id to use for the actual assignment. |
| 67 | + |
| 68 | +# Need help? |
| 69 | + |
| 70 | +Feel free to contact the Rollbar Customer Engineering team or log a Issue in GitHub. |
| 71 | + |
| 72 | +Please feel free to add, improve and expand this Auto Assignment service. |
0 commit comments