Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prathik/sprintbot
Slack bot for Jira to handle Sprints
https://github.com/prathik/sprintbot
jira slack sprint-planning standup-meetings
Last synced: about 1 month ago
JSON representation
Slack bot for Jira to handle Sprints
- Host: GitHub
- URL: https://github.com/prathik/sprintbot
- Owner: prathik
- Created: 2017-06-08T16:53:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-21T08:35:31.000Z (over 7 years ago)
- Last Synced: 2024-11-11T14:26:33.123Z (3 months ago)
- Topics: jira, slack, sprint-planning, standup-meetings
- Language: Java
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sprint Bot
[![Build Status](https://travis-ci.org/prathik/sprintbot.svg?branch=master)](https://travis-ci.org/prathik/sprintbot) [![Coverage Status](https://coveralls.io/repos/github/prathik/sprintbot/badge.svg?branch=master)](https://coveralls.io/github/prathik/sprintbot?branch=master)![Demo Image](demo.png?raw=true "Demo Image")
## Features
* For all open tasks ask the status
* If no task is present as to create one
* Resolve as done on reply as Yes
* Start progress when reply is In Progress or In progress
* Ask status only for start date less than or equal to current date
* Recieve digest at a specified time
* Very easy to add custom handlers for answers## Setup
Create config.properties in `src/main/resources`.
```
username=jirausername
password=jirapassword
slackToken=slacktoken
endpoint=https://jira.corp.domain.com
```Add your users in `src/main/resources/users.xml`.
## Running
Create the jar using `mvn package`.
Run the `jar` file in `/target/`.
## Adding new answer handlers
Answer handlers are interfaced using `AnswerActionHandler`.
The lifecycle is that a question is first asked to the user and then it is polled for an answer by the `Question` class.
`CommonHandlersFactory` has a getCommonHandlers method which has all the handlers used by a `Question`.
You can add your handler in that method.
```java
public static List getCommonHandlers(Jira jira) {
if(handlersMap.get(jira) == null) {
final AnswerActionHandler answerActionHandler = new ResolveOnYes(jira);
handlersMap.put(jira, new ArrayList() {{
add(answerActionHandler);
}});
}
return handlersMap.get(jira);
}
```Create a new class similar to `ResolveOnYes` interfaced using ActionHandler and add it using the `add method` on to the list.