Jira To Confluence Weekly Progress Report module
Retrieve the list of resolved issues for the specified assignee between the start date and end date and create a Confluence page with the list of issues.
create_html_content(jira_issue_base_url, title, issues, config)
Create the HTML table that will be inserted into the new Confluence page.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jira_issue_base_url |
str
|
The JIRA issue base url. |
required |
title |
str
|
The title of the Confluence page. |
required |
issues |
List[Any]
|
The list of issues. |
required |
config |
Dict[str, Any]
|
The configuration object. |
required |
Returns: str: The HTML table.
Source code in jira_python_utils/jira_to_confluence_weekly_progress_report.py
get_in_development_issues(start_date, end_date, assignee, auth_jira)
Get the list of issues that are in development for the specified assignee between the start date and end date.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
str
|
The start date in the format 'YYYY-MM-DD'. |
required |
end_date |
str
|
The end date in the format 'YYYY-MM-DD'. |
required |
assignee |
str
|
The assignee. |
required |
auth_jira |
JIRA
|
The authenticated JIRA object. |
required |
Returns: List[Any]: The list of issues that are in development.
Source code in jira_python_utils/jira_to_confluence_weekly_progress_report.py
get_issues(query, auth_jira)
Get the list of issues for the specified query.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
str
|
The JQL query. |
required |
auth_jira |
JIRA
|
The authenticated JIRA object. |
required |
Returns:
Type | Description |
---|---|
List[Any]
|
List[Any]: The list of issues. |
Source code in jira_python_utils/jira_to_confluence_weekly_progress_report.py
get_jira_issue_base_url(config)
Get the JIRA issue base url from the configuration file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
Dict[str, Any]
|
The configuration object. |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The JIRA issue base url. |
Source code in jira_python_utils/jira_to_confluence_weekly_progress_report.py
get_on_hold_issues(start_date, end_date, assignee, auth_jira)
Get the list of issues that are on hold for the specified assignee between the start date and end date.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
str
|
The start date in the format 'YYYY-MM-DD'. |
required |
end_date |
str
|
The end date in the format 'YYYY-MM-DD'. |
required |
assignee |
str
|
The assignee. |
required |
auth_jira |
JIRA
|
The authenticated JIRA object. |
required |
Returns: List[Any]: The list of issues that are on hold.
Source code in jira_python_utils/jira_to_confluence_weekly_progress_report.py
get_resolved_issues(start_date, end_date, assignee, auth_jira)
Get the list of resolved issues for the specified assignee between the start date and end date.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
str
|
The start date in the format 'YYYY-MM-DD' |
required |
end_date |
str
|
The end date in the format 'YYYY-MM-DD' |
required |
assignee |
str
|
The assignee |
required |
auth_jira |
JIRA
|
The authenticated JIRA object |
required |
Returns: List[Any]: The list of resolved issues
Source code in jira_python_utils/jira_to_confluence_weekly_progress_report.py
get_weekly_ranges(config, config_file)
Retrieve the weekly ranges from the configuration file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
Dict[str, Any]
|
The configuration object. |
required |
config_file |
str
|
The configuration file. |
required |
Returns:
Type | Description |
---|---|
List[Dict[str, str]]
|
List[Dict[str, str]]: The list of weekly ranges. |
Source code in jira_python_utils/jira_to_confluence_weekly_progress_report.py
main(assignee, config_file, credential_file, logfile, outdir, query)
Retrieve the list of resolved issues for the specified assignee between the start date and end date and create a Confluence page with the list of issues.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
assignee |
str
|
The assignee. |
required |
config_file |
Optional[str]
|
The configuration file. |
required |
credential_file |
Optional[str]
|
The credential file. |
required |
logfile |
Optional[str]
|
The log file. |
required |
outdir |
Optional[str]
|
The output directory. |
required |
query |
str
|
The Jira jql query string. |
required |
Source code in jira_python_utils/jira_to_confluence_weekly_progress_report.py
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 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 |
|