MCPcopy Create free account

hub / github.com/ankitpokhrel/jira-cli / functions

Functions712 in github.com/ankitpokhrel/jira-cli

↓ 246 callersFunctionExitIfError
ExitIfError exists with error message if err is not nil.
internal/cmdutil/utils.go:23
↓ 140 callersMethodGetString
(string)
internal/query/query.go:6
↓ 97 callersMethodClose
(Connector)
pkg/adf/adf.go:52
↓ 77 callersMethodGetBool
(string)
internal/query/query.go:5
↓ 61 callersMethodError
()
pkg/jira/client.go:62
↓ 58 callersMethodString
()
internal/view/issue.go:91
↓ 51 callersFunctionNewClient
NewClient instantiates new jira client.
pkg/jira/client.go:133
↓ 51 callersMethodSet
(name, value string)
internal/query/query.go:10
↓ 51 callersFunctionWithTimeout
WithTimeout is a functional opt to attach timeout to the client.
pkg/jira/client.go:184
↓ 48 callersMethodGet
Get sends GET request to v3 version of the jira api.
pkg/jira/client.go:198
↓ 44 callersFunctionInfo
Info displays spinner.
internal/cmdutil/utils.go:57
↓ 42 callersFunctionGetJiraIssueKey
GetJiraIssueKey constructs actual issue key based on given key.
internal/cmdutil/utils.go:150
↓ 39 callersMethodFilterBy
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 callersFunctionFailed
Failed prints failure message in stderr and exits.
internal/cmdutil/utils.go:88
↓ 32 callersFunctionformatUnexpectedResponse
(res *http.Response)
pkg/jira/client.go:311
↓ 30 callersFunctionDefaultClient
DefaultClient returns default jira client.
api/client.go:74
↓ 30 callersFunctionNewIssue
NewIssue creates and initializes a new Issue type.
internal/query/issue.go:23
↓ 26 callersMethodParams
Params returns issue command params.
internal/query/issue.go:118
↓ 24 callersFunctionNewJQL
NewJQL initializes jql query builder.
pkg/jql/jql.go:27
↓ 22 callersFunctionSuccess
Success prints success message in stdout.
internal/cmdutil/utils.go:73
↓ 19 callersFunctionGenerateServerBrowseURL
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 callersMethodKey
()
pkg/jira/filter/filter.go:5
↓ 17 callersMethodGet
Get returns constructed jql query.
internal/query/issue.go:49
↓ 17 callersMethodGetStringArray
(string)
internal/query/query.go:7
↓ 17 callersMethodString
String returns the constructed query.
pkg/jql/jql.go:194
↓ 15 callersMethodAnd
And combines filter with AND operator.
pkg/jql/jql.go:167
↓ 14 callersFunctionformatDateTime
(dt, format, tz string)
internal/view/helper.go:100
↓ 13 callersFunctionnewBlankFragment
(n int)
internal/view/issue.go:27
↓ 12 callersFunctionGetPager
GetPager returns configured pager.
pkg/tui/helper.go:85
↓ 12 callersMethodGetV2
GetV2 sends GET request to v2 version of the jira api.
pkg/jira/client.go:203
↓ 12 callersFunctionIsDumbTerminal
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 callersFunctionmax
(a, b int)
internal/view/helper.go:231
↓ 11 callersMethodCreateV2
CreateV2 creates an issue using v2 version of the POST /issue endpoint.
pkg/jira/create.go:75
↓ 11 callersFunctionFormatDateTimeHuman
FormatDateTimeHuman formats date time in human readable format.
internal/cmdutil/utils.go:110
↓ 11 callersMethodReplaceAll
ReplaceAll replaces all occurrences of an old string in a text node with a new one.
pkg/adf/adf.go:76
↓ 11 callersMethodString
()
pkg/jira/client.go:73
↓ 10 callersFunctionpad
(msg string, limit int)
internal/view/helper.go:222
↓ 10 callersMethodrequest
(ctx context.Context, method, endpoint string, body []byte, headers Header)
pkg/jira/client.go:247
↓ 10 callersMethodseparator
(msg string)
internal/view/issue.go:183
↓ 9 callersMethodGetUint
(name string)
internal/query/query.go:9
↓ 9 callersFunctionNavigate
Navigate navigates to jira issue.
internal/cmdutil/utils.go:94
↓ 9 callersFunctionParse
Parse converts input string to Jira markdown.
pkg/md/jirawiki/parser.go:83
↓ 9 callersMethodSetText
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 callersMethodSetTextColor
SetTextColor sets the color of the message text.
pkg/tui/primitive/actionmodal.go:81
↓ 9 callersFunctionprepareTitle
(text string)
internal/view/helper.go:115
↓ 8 callersFunctionNewSprint
NewSprint creates and initializes a new Sprint type.
internal/query/sprint.go:16
↓ 8 callersMethodPostV2
PostV2 sends POST request to v2 version of the jira api.
pkg/jira/client.go:218
↓ 8 callersFunctionStdinHasData
StdinHasData checks if standard input has any data to be processed.
internal/cmdutil/utils.go:132
↓ 8 callersFunctiongetIssues
()
internal/view/issues_test.go:194
↓ 7 callersFunctionFail
Fail prints failure message in stderr.
internal/cmdutil/utils.go:83
↓ 7 callersMethodGte
Gte is a greater than and equals filter.
pkg/jql/jql.go:89
↓ 7 callersFunctionPagerOut
PagerOut outputs to configured pager if possible.
pkg/tui/helper.go:105
↓ 7 callersMethodSetFocus
SetFocus shifts the focus to the button with the given index.
pkg/tui/primitive/actionmodal.go:147
↓ 7 callersFunctioncoloredOut
(msg string, clr color.Attribute, attrs ...color.Attribute)
internal/view/helper.go:194
↓ 6 callersMethodGetIndex
GetIndex returns the index of the specified column.
pkg/tui/table.go:57
↓ 6 callersMethodGetV1
GetV1 sends get request to v1 version of the jira api.
pkg/jira/client.go:208
↓ 6 callersMethodIn
In constructs a query with IN clause.
pkg/jql/jql.go:121
↓ 6 callersFunctionNewNumCommentsFilter
NewNumCommentsFilter constructs a filter to limit number of comments.
pkg/jira/filter/issue/num_comments.go:17
↓ 6 callersFunctionProxyGetIssue
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 callersMethodSetBackgroundColor
SetBackgroundColor sets the color of the modal frame background.
pkg/tui/primitive/actionmodal.go:74
↓ 6 callersFunctionpad
(in string, n uint)
pkg/tui/helper.go:19
↓ 6 callersMethodrenderPlain
renderPlain renders the issue in plain view.
internal/view/issues.go:139
↓ 5 callersMethodAddIssueWorklog
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 callersFunctionGetConfigHome
GetConfigHome returns the config home directory.
internal/cmdutil/utils.go:119
↓ 5 callersFunctionGetTUIStyleConfig
GetTUIStyleConfig returns the custom style configured by the user.
internal/cmdutil/utils.go:204
↓ 5 callersMethodHistory
History search through user issue history.
pkg/jql/jql.go:35
↓ 5 callersFunctionIsNotTTY
IsNotTTY returns true if the stdout file descriptor is not a TTY.
pkg/tui/helper.go:80
↓ 5 callersMethodLt
Lt is a less than filter.
pkg/jql/jql.go:105
↓ 5 callersMethodNotIn
NotIn constructs a query with NOT IN clause.
pkg/jql/jql.go:141
↓ 5 callersMethodOr
Or combine filters with OR operator.
pkg/jql/jql.go:174
↓ 5 callersFunctionProxyUserSearch
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 callersMethodRaw
Raw sets the passed JQL query along with project context.
pkg/jql/jql.go:181
↓ 5 callersFunctionToJiraMD
ToJiraMD translates CommonMark to Jira flavored markdown.
pkg/md/md.go:11
↓ 5 callersFunctionValidIssueColumns
ValidIssueColumns returns valid columns for issue list.
internal/view/helper.go:64
↓ 5 callersMethodWatching
Watching search through watched issues.
pkg/jql/jql.go:41
↓ 5 callersMethodprintText
(s string)
pkg/tui/preview.go:286
↓ 4 callersMethodBoards
Boards gets all boards of a given type in a project.
pkg/jira/board.go:25
↓ 4 callersMethodDeleteIssue
DeleteIssue deletes an issue using /issue/{key} endpoint.
pkg/jira/delete.go:10
↓ 4 callersMethodEpicIssues
EpicIssues fetches issues in the given epic.
pkg/jira/epic.go:19
↓ 4 callersFunctionExists
Exists checks if the file exist.
internal/config/generator.go:834
↓ 4 callersMethodForProjectType
ForProjectType sets jira project type.
pkg/jira/create.go:55
↓ 4 callersMethodGetInt
GetInt returns filter value as an integer.
pkg/jira/filter/filter.go:26
↓ 4 callersMethodGetIssue
GetIssue fetches issue details using GET /issue/{key} endpoint.
pkg/jira/issue.go:30
↓ 4 callersMethodGetIssueV2
GetIssueV2 fetches issue details using v2 version of Jira GET /issue/{key} endpoint.
pkg/jira/issue.go:51
↓ 4 callersFunctionGetRelevantUser
GetRelevantUser finds and returns a valid user name or account ID based on user input.
internal/cmdcommon/create.go:207
↓ 4 callersMethodGt
Gt is a greater than filter.
pkg/jql/jql.go:73
↓ 4 callersMethodLinkIssue
LinkIssue connects issues to the given link type using POST /issueLink endpoint.
pkg/jira/issue.go:225
↓ 4 callersFunctionMDRenderer
MDRenderer constructs markdown renderer.
internal/view/helper.go:93
↓ 4 callersFunctionNewMarkdownTranslator
NewMarkdownTranslator constructs markdown translator.
pkg/adf/markdown.go:33
↓ 4 callersFunctionNewTranslator
NewTranslator constructs an ADF translator.
pkg/adf/adf.go:181
↓ 4 callersMethodPaint
Paint paints the table layout. First row is treated as a table header.
pkg/tui/table.go:225
↓ 4 callersMethodPostV1
PostV1 sends POST request to v1 version of the jira api.
pkg/jira/client.go:223
↓ 4 callersMethodProject
Project fetches response from /project endpoint.
pkg/jira/project.go:17
↓ 4 callersFunctionProxyAssignIssue
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 callersFunctionReadFile
ReadFile reads contents of the given file.
internal/cmdutil/utils.go:137
↓ 4 callersMethodRenderedOut
RenderedOut translates raw data to the format we want to display in.
internal/view/issue.go:73
↓ 4 callersMethodSearch
Search searches for issues using v3 version of the Jira GET /search endpoint.
pkg/jira/search.go:19
↓ 4 callersMethodServerInfo
ServerInfo fetches response from /serverInfo endpoint.
pkg/jira/serverinfo.go:21
↓ 4 callersMethodSetDoneFunc
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 callersMethodSprintIssues
SprintIssues fetches issues in the given sprint.
pkg/jira/sprint.go:168
next →1–100 of 712, ranked by callers