jira_ticket plugin
Getting Started
This project is a fastlane plugin. To get started with fastlane-plugin-jira_ticket
, add it to your project by running:
fastlane add_plugin jira_ticket
About jira_ticket
get ticket in jira board
Note to author: Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
Example
Check out the example Fastfile
to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins
and bundle exec fastlane test
.
the password is not your real password you need to generate a token api on your setting profile in JIRA
ticket = jira_ticket(username: YOUR_EMAIL, password: YOUR_JIRA_TOKEN, url: 'https://your-jira-url.com', ticket_id: 'XXXX')
how to use
ticket = jira_ticket(url: "https://YOUR_JIRA_ADDRESS",username: ENV["JIRA_USERNAME"],password: ENV["JIRA_TOKEN"],ticket_id: "TICKET_1001")
summary = ticket.summary // title of the ticket
description = ticket.description // content of the ticket
id = ticket.key // id of the ticket
created = ticket.created // creation date
updated = ticket.updated // last update date
assigneeEmail = ticket.assignee.emailAddress // it is email of user in charge of the ticket
assigneeImage = ticket.assignee.avatarUrls['48x48'] // it is avatar of user in charge of the ticket
assigneeName = ticket.assignee.displayName // it is name of user in charge of the ticket
reporterEmail = ticket.reporter.emailAddress
reporterImage = ticket.reporter.avatarUrls['48x48']
reporterName = ticket.reporter.displayName
creatorEmail = ticket.creator.emailAddress // it is email of user who create the ticket
creatorImage = ticket.creator.avatarUrls['48x48'] // it is avatar of user who create the ticket
creatorName = ticket.creator.displayName // it is name of user who create the ticket
....
Run tests for this plugin
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
Issues and Feedback
For any other issues and feedback about this plugin, please submit it to this repository.
Troubleshooting
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
Using fastlane Plugins
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
About fastlane
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.