Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kijuky/jira-for-scala
https://github.com/kijuky/jira-for-scala
jira scala
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kijuky/jira-for-scala
- Owner: kijuky
- License: other
- Created: 2024-10-05T11:21:48.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T14:12:02.000Z (2 months ago)
- Last Synced: 2024-10-29T17:21:29.677Z (2 months ago)
- Topics: jira, scala
- Language: Scala
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jira-for-scala
## Example
### sbt console
```toml
[env]
JIRA_SERVER_URI = "serverUri"
JIRA_ACCESS_TOKEN = "accessToken"
``````shell
mise trust
sbt console
``````scala
val jira = new io.github.kijuky.jira.JiraFacade("serverUri", "accessToken")
import jira.Implicits._jira.issues(filterId = xxxxx).foreach(i => println(i.summary))
```### cake pattern
```scala
import io.github.kijuky.jira.Implicits._
trait JiraComponent {
implicit lazy val jira: JiraClient = createJiraClient("serverUri", "accessToken")
}
``````scala
import io.github.kijuky.jira.Implicits._
object Main extends App with JiraComponent {
jira.issues(filterId = xxxxx).foreach(i => println(i.summary))
}
```### zio
```scala
import io.github.kijuky.zio.jira._
import zio._
object Main extends ZIOAppDefault {
def run = {
for {
issues <- JiraIssueRepo.list(filterId = xxxxx)
_ <- ZIO.foreach(issues)(i => Console.printLine(i.summary))
} yield ()
}.provide(JiraService.layer, JiraIssueRepoImpl.layer)
}
```