Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ankitpokhrel/jira-cli
/ functions
Functions
712 in github.com/ankitpokhrel/jira-cli
⨍
Functions
712
◇
Types & classes
178
↓ 246 callers
Function
ExitIfError
ExitIfError exists with error message if err is not nil.
internal/cmdutil/utils.go:23
↓ 140 callers
Method
GetString
(string)
internal/query/query.go:6
↓ 97 callers
Method
Close
(Connector)
pkg/adf/adf.go:52
↓ 77 callers
Method
GetBool
(string)
internal/query/query.go:5
↓ 61 callers
Method
Error
()
pkg/jira/client.go:62
↓ 58 callers
Method
String
()
internal/view/issue.go:91
↓ 51 callers
Function
NewClient
NewClient instantiates new jira client.
pkg/jira/client.go:133
↓ 51 callers
Method
Set
(name, value string)
internal/query/query.go:10
↓ 51 callers
Function
WithTimeout
WithTimeout is a functional opt to attach timeout to the client.
pkg/jira/client.go:184
↓ 48 callers
Method
Get
Get sends GET request to v3 version of the jira api.
pkg/jira/client.go:198
↓ 44 callers
Function
Info
Info displays spinner.
internal/cmdutil/utils.go:57
↓ 42 callers
Function
GetJiraIssueKey
GetJiraIssueKey constructs actual issue key based on given key.
internal/cmdutil/utils.go:150
↓ 39 callers
Method
FilterBy
FilterBy filters with a given field. If the value is `x`, it construct the query with IS EMPTY operator, uses equals otherwise.
pkg/jql/jql.go:49
↓ 37 callers
Function
Failed
Failed prints failure message in stderr and exits.
internal/cmdutil/utils.go:88
↓ 32 callers
Function
formatUnexpectedResponse
(res *http.Response)
pkg/jira/client.go:311
↓ 30 callers
Function
DefaultClient
DefaultClient returns default jira client.
api/client.go:74
↓ 30 callers
Function
NewIssue
NewIssue creates and initializes a new Issue type.
internal/query/issue.go:23
↓ 26 callers
Method
Params
Params returns issue command params.
internal/query/issue.go:118
↓ 24 callers
Function
NewJQL
NewJQL initializes jql query builder.
pkg/jql/jql.go:27
↓ 22 callers
Function
Success
Success prints success message in stdout.
internal/cmdutil/utils.go:73
↓ 19 callers
Function
GenerateServerBrowseURL
GenerateServerBrowseURL will return the `browse` URL for a given key. The server section can be overridden via `browse_server` in config. This is usef
internal/cmdutil/utils.go:102
↓ 19 callers
Method
Key
()
pkg/jira/filter/filter.go:5
↓ 17 callers
Method
Get
Get returns constructed jql query.
internal/query/issue.go:49
↓ 17 callers
Method
GetStringArray
(string)
internal/query/query.go:7
↓ 17 callers
Method
String
String returns the constructed query.
pkg/jql/jql.go:194
↓ 15 callers
Method
And
And combines filter with AND operator.
pkg/jql/jql.go:167
↓ 14 callers
Function
formatDateTime
(dt, format, tz string)
internal/view/helper.go:100
↓ 13 callers
Function
newBlankFragment
(n int)
internal/view/issue.go:27
↓ 12 callers
Function
GetPager
GetPager returns configured pager.
pkg/tui/helper.go:85
↓ 12 callers
Method
GetV2
GetV2 sends GET request to v2 version of the jira api.
pkg/jira/client.go:203
↓ 12 callers
Function
IsDumbTerminal
IsDumbTerminal checks TERM/WT_SESSION environment variable and returns true if they indicate a dumb terminal. Dumb terminal indicates terminal with l
pkg/tui/helper.go:73
↓ 12 callers
Function
max
(a, b int)
internal/view/helper.go:231
↓ 11 callers
Method
CreateV2
CreateV2 creates an issue using v2 version of the POST /issue endpoint.
pkg/jira/create.go:75
↓ 11 callers
Function
FormatDateTimeHuman
FormatDateTimeHuman formats date time in human readable format.
internal/cmdutil/utils.go:110
↓ 11 callers
Method
ReplaceAll
ReplaceAll replaces all occurrences of an old string in a text node with a new one.
pkg/adf/adf.go:76
↓ 11 callers
Method
String
()
pkg/jira/client.go:73
↓ 10 callers
Function
pad
(msg string, limit int)
internal/view/helper.go:222
↓ 10 callers
Method
request
(ctx context.Context, method, endpoint string, body []byte, headers Header)
pkg/jira/client.go:247
↓ 10 callers
Method
separator
(msg string)
internal/view/issue.go:183
↓ 9 callers
Method
GetUint
(name string)
internal/query/query.go:9
↓ 9 callers
Function
Navigate
Navigate navigates to jira issue.
internal/cmdutil/utils.go:94
↓ 9 callers
Function
Parse
Parse converts input string to Jira markdown.
pkg/md/jirawiki/parser.go:83
↓ 9 callers
Method
SetText
SetText sets the message text of the window. The text may contain line breaks but color tag states will not transfer to following lines. Note that wor
pkg/tui/primitive/actionmodal.go:110
↓ 9 callers
Method
SetTextColor
SetTextColor sets the color of the message text.
pkg/tui/primitive/actionmodal.go:81
↓ 9 callers
Function
prepareTitle
(text string)
internal/view/helper.go:115
↓ 8 callers
Function
NewSprint
NewSprint creates and initializes a new Sprint type.
internal/query/sprint.go:16
↓ 8 callers
Method
PostV2
PostV2 sends POST request to v2 version of the jira api.
pkg/jira/client.go:218
↓ 8 callers
Function
StdinHasData
StdinHasData checks if standard input has any data to be processed.
internal/cmdutil/utils.go:132
↓ 8 callers
Function
getIssues
()
internal/view/issues_test.go:194
↓ 7 callers
Function
Fail
Fail prints failure message in stderr.
internal/cmdutil/utils.go:83
↓ 7 callers
Method
Gte
Gte is a greater than and equals filter.
pkg/jql/jql.go:89
↓ 7 callers
Function
PagerOut
PagerOut outputs to configured pager if possible.
pkg/tui/helper.go:105
↓ 7 callers
Method
SetFocus
SetFocus shifts the focus to the button with the given index.
pkg/tui/primitive/actionmodal.go:147
↓ 7 callers
Function
coloredOut
(msg string, clr color.Attribute, attrs ...color.Attribute)
internal/view/helper.go:194
↓ 6 callers
Method
GetIndex
GetIndex returns the index of the specified column.
pkg/tui/table.go:57
↓ 6 callers
Method
GetV1
GetV1 sends get request to v1 version of the jira api.
pkg/jira/client.go:208
↓ 6 callers
Method
In
In constructs a query with IN clause.
pkg/jql/jql.go:121
↓ 6 callers
Function
NewNumCommentsFilter
NewNumCommentsFilter constructs a filter to limit number of comments.
pkg/jira/filter/issue/num_comments.go:17
↓ 6 callers
Function
ProxyGetIssue
ProxyGetIssue uses either a v2 or v3 version of the Jira GET /issue/{key} endpoint to fetch the issue details based on configured installation type. D
api/client.go:110
↓ 6 callers
Method
SetBackgroundColor
SetBackgroundColor sets the color of the modal frame background.
pkg/tui/primitive/actionmodal.go:74
↓ 6 callers
Function
pad
(in string, n uint)
pkg/tui/helper.go:19
↓ 6 callers
Method
renderPlain
renderPlain renders the issue in plain view.
internal/view/issues.go:139
↓ 5 callers
Method
AddIssueWorklog
AddIssueWorklog adds worklog to an issue using POST /issue/{key}/worklog endpoint. Leave param `started` empty to use the server's current datetime as
pkg/jira/issue.go:346
↓ 5 callers
Function
GetConfigHome
GetConfigHome returns the config home directory.
internal/cmdutil/utils.go:119
↓ 5 callers
Function
GetTUIStyleConfig
GetTUIStyleConfig returns the custom style configured by the user.
internal/cmdutil/utils.go:204
↓ 5 callers
Method
History
History search through user issue history.
pkg/jql/jql.go:35
↓ 5 callers
Function
IsNotTTY
IsNotTTY returns true if the stdout file descriptor is not a TTY.
pkg/tui/helper.go:80
↓ 5 callers
Method
Lt
Lt is a less than filter.
pkg/jql/jql.go:105
↓ 5 callers
Method
NotIn
NotIn constructs a query with NOT IN clause.
pkg/jql/jql.go:141
↓ 5 callers
Method
Or
Or combine filters with OR operator.
pkg/jql/jql.go:174
↓ 5 callers
Function
ProxyUserSearch
ProxyUserSearch uses either v2 or v3 version of the GET /user/assignable/search endpoint to search for the users assignable to the given issue. Defaul
api/client.go:172
↓ 5 callers
Method
Raw
Raw sets the passed JQL query along with project context.
pkg/jql/jql.go:181
↓ 5 callers
Function
ToJiraMD
ToJiraMD translates CommonMark to Jira flavored markdown.
pkg/md/md.go:11
↓ 5 callers
Function
ValidIssueColumns
ValidIssueColumns returns valid columns for issue list.
internal/view/helper.go:64
↓ 5 callers
Method
Watching
Watching search through watched issues.
pkg/jql/jql.go:41
↓ 5 callers
Method
printText
(s string)
pkg/tui/preview.go:286
↓ 4 callers
Method
Boards
Boards gets all boards of a given type in a project.
pkg/jira/board.go:25
↓ 4 callers
Method
DeleteIssue
DeleteIssue deletes an issue using /issue/{key} endpoint.
pkg/jira/delete.go:10
↓ 4 callers
Method
EpicIssues
EpicIssues fetches issues in the given epic.
pkg/jira/epic.go:19
↓ 4 callers
Function
Exists
Exists checks if the file exist.
internal/config/generator.go:834
↓ 4 callers
Method
ForProjectType
ForProjectType sets jira project type.
pkg/jira/create.go:55
↓ 4 callers
Method
GetInt
GetInt returns filter value as an integer.
pkg/jira/filter/filter.go:26
↓ 4 callers
Method
GetIssue
GetIssue fetches issue details using GET /issue/{key} endpoint.
pkg/jira/issue.go:30
↓ 4 callers
Method
GetIssueV2
GetIssueV2 fetches issue details using v2 version of Jira GET /issue/{key} endpoint.
pkg/jira/issue.go:51
↓ 4 callers
Function
GetRelevantUser
GetRelevantUser finds and returns a valid user name or account ID based on user input.
internal/cmdcommon/create.go:207
↓ 4 callers
Method
Gt
Gt is a greater than filter.
pkg/jql/jql.go:73
↓ 4 callers
Method
LinkIssue
LinkIssue connects issues to the given link type using POST /issueLink endpoint.
pkg/jira/issue.go:225
↓ 4 callers
Function
MDRenderer
MDRenderer constructs markdown renderer.
internal/view/helper.go:93
↓ 4 callers
Function
NewMarkdownTranslator
NewMarkdownTranslator constructs markdown translator.
pkg/adf/markdown.go:33
↓ 4 callers
Function
NewTranslator
NewTranslator constructs an ADF translator.
pkg/adf/adf.go:181
↓ 4 callers
Method
Paint
Paint paints the table layout. First row is treated as a table header.
pkg/tui/table.go:225
↓ 4 callers
Method
PostV1
PostV1 sends POST request to v1 version of the jira api.
pkg/jira/client.go:223
↓ 4 callers
Method
Project
Project fetches response from /project endpoint.
pkg/jira/project.go:17
↓ 4 callers
Function
ProxyAssignIssue
ProxyAssignIssue uses either a v2 or v3 version of the PUT /issue/{key}/assignee endpoint to assign an issue to the user. Defaults to v3 if installati
api/client.go:150
↓ 4 callers
Function
ReadFile
ReadFile reads contents of the given file.
internal/cmdutil/utils.go:137
↓ 4 callers
Method
RenderedOut
RenderedOut translates raw data to the format we want to display in.
internal/view/issue.go:73
↓ 4 callers
Method
Search
Search searches for issues using v3 version of the Jira GET /search endpoint.
pkg/jira/search.go:19
↓ 4 callers
Method
ServerInfo
ServerInfo fetches response from /serverInfo endpoint.
pkg/jira/serverinfo.go:21
↓ 4 callers
Method
SetDoneFunc
SetDoneFunc sets a handler which is called when one of the buttons was pressed. It receives the index of the button as well as its label text. The han
pkg/tui/primitive/actionmodal.go:102
↓ 4 callers
Method
SprintIssues
SprintIssues fetches issues in the given sprint.
pkg/jira/sprint.go:168
next →
1–100 of 712, ranked by callers