File size: 1,227 Bytes
34019b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
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
# Runtime Flow

## Startup

1. Streamlit starts `app.py`.
2. Optional `.env` values are loaded by `jira_client.py`.
3. If `APP_PASSWORD` exists, the app shows a password gate.
4. `fetch_data()` loads active, pending, and on-hold Jira projects.
5. Assignment JSON files load from the Hugging Face Dataset when `HF_TOKEN`
   exists; otherwise local JSON files are used.

## Project Calendar

1. `jira_client.load_all_data()` reads Jira project and issue data.
2. `app.py` injects PM, backup, and country assignments into project rows.
3. `gantt_renderer.render_gantt_html()` renders the interactive calendar.
4. `excel_export.generate_excel_bytes()` generates the downloadable workbook.

## Date Editing

1. The selected project is fetched on demand through
   `get_all_issues_for_project_edit()`.
2. `build_issue_map()` maps phases/tasks to Jira issue keys.
3. `update_issue_dates()` writes changed start/end dates back to Jira.

## Project Creation

1. `create_project()` creates the Jira project with shared template settings.
2. `upload_project_avatar()` optionally writes a Jira avatar.
3. Template issue cloning helpers live in `jira_client.py`; the UI currently
   exposes template filter selection and Jira filter links.