Jira
JiraToolSpec #
Bases: BaseToolSpec
Atlassian Jira Tool Spec.
Source code in llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/base.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
|
jira_all_projects #
jira_all_projects() -> dict
Retrieve all projects from the Atlassian Jira account.
This method fetches a list of projects from Jira and returns them in a structured format, including the project ID, key, and name. If an error occurs during retrieval, an error message is returned.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
A dictionary containing: - 'error' (bool): Indicates whether the request was successful. - 'message' (str): A description of the result. - 'projects' (list, optional): A list of projects with their details (ID, key, name) if retrieval is successful. |
Source code in llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/base.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
jira_comments_query #
jira_comments_query(issue_key: str, author_email: Optional[str] = None) -> dict
Retrieve all comments for a given Jira issue, optionally filtering by the author's email.
This function fetches comments from a specified Jira issue and returns them as a structured
JSON response. If an author_email
is provided, only comments from that specific author
will be included.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
issue_key
|
str
|
The Jira issue key for which to retrieve comments. |
required |
author_email
|
(str, Optional)
|
filters comments by the author's email. |
None
|
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
A dictionary containing: - 'error' (bool): Indicates whether the request was successful. - 'message' (str): A descriptive message about the result. - 'comments' (list, optional): A list of comments, where each comment includes: - 'id' (str): The unique identifier of the comment. - 'author' (str): The display name of the comment's author. - 'author_email' (str): The author's email address. - 'body' (str): The content of the comment. - 'created_at' (str): The timestamp when the comment was created. - 'updated_at' (str): The timestamp when the comment was last updated. |
Source code in llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/base.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|
jira_issue_query #
jira_issue_query(issue_key: str, just_payload: bool = False) -> Union[None, dict]
Retrieves detailed information about a specific Jira issue.
This method fetches issue details such as summary, description, type, project, priority, status,
reporter, assignee, labels, and timestamps. The response structure can be adjusted using the
just_payload
flag.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
issue_key
|
str
|
The unique key or ticket number of the Jira issue. |
required |
just_payload
|
bool
|
If True, returns only the issue payload without the response metadata. Defaults to False. |
False
|
Returns:
Type | Description |
---|---|
Union[None, dict]
|
Union[None, dict]: A dictionary containing issue details if found, or an error response if the issue cannot be retrieved. |
Example
jira_client.load_issue("JIRA-123", just_payload=True) { 'key': 'JIRA-123', 'summary': 'Fix login bug', 'description': 'Users unable to log in under certain conditions...', 'type': 'Bug', 'project_name': 'Web App', 'priority': 'High', 'status': 'In Progress', 'reporter': 'John Doe', 'reporter_email': '[email protected]', 'labels': ['authentication', 'urgent'], 'created_at': '2024-02-01T10:15:30.000Z', 'updated_at': '2024-02-02T12:20:45.000Z', 'assignee': 'Jane Smith', 'assignee_email': '[email protected]' }
Source code in llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/base.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
|
jira_issues_query #
jira_issues_query(keyword: str, max_results: int = 10) -> dict
Search for Jira issues containing a specific keyword.
This function searches for Jira issues where the specified keyword
appears in the summary, description, or comments.
The results are sorted by creation date in descending order.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
keyword
|
str
|
The keyword to search for within issue summaries, descriptions, or comments. |
required |
max_results
|
int
|
The maximum number of issues to return. Defaults to 10. If set higher than 100, it will be limited to 100. |
10
|
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
A dictionary with the following structure: - 'error' (bool): Indicates if an error occurred during the fetch operation. - 'message' (str): Describes the outcome of the operation. - 'results' (list, optional): A list of issues matching the search criteria, present only if no error occurred. |
Source code in llama-index-integrations/tools/llama-index-tools-jira/llama_index/tools/jira/base.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
|