Skip to content

Additional functions#1

Open
lanzer-gaia wants to merge 3 commits into773-process-312:mainfrom
lanzer-gaia:autodetect-columns
Open

Additional functions#1
lanzer-gaia wants to merge 3 commits into773-process-312:mainfrom
lanzer-gaia:autodetect-columns

Conversation

@lanzer-gaia
Copy link

For my project I've added a number of features to the script to suit my need.

- Allow the presence of a ".env" file in the current directory for values matching those parameters
- Also allow the script to accept command line parameters under the same names. (ie --api_token)
- If both sources are missing, only then prompt the user to input the parameter values.
- If no project ID is given, display a list of existing projects for user to choose.
- Look for header row in CSV file and match each column with Work Package field (ie "subject")
- Allow for csv file to have its own ID and Parent columns, and will create child tasks based off which task has parent id defined.  (ID in csv will be for reference only)
- Will scan for all members listed under project
- Admin assigned to the project will have all inserted tasks assigned to admin
- If the "assignee" or "accountable" column exist in CSV, it'll try to match the name with what's found in the member list

I still suck at Python and I'm on a time crunch so most of this code is AI generated. As a result a lot of your original code had been altered. So feel free to throw all this in the garbage. :)

…alues matching those parameters

    - Also allow the script to accept command line parameters under the same names. (ie --api_token)
    - If both sources are missing, only then prompt the user to input the parameter values.
    - If no project ID is given, display a list of existing projects for user to choose.
    - Look for header row in CSV file and match each column with Work Package field (ie "subject")
    - Allow for csv file to have its own ID and Parent columns, and will create child tasks based off which task has parent id defined.  (if Task ID 2 has a parent column as 1, then this task will be the child task of task 773-process-312#1.  In OpenProject the actual task ID number will be different)
    - Will scan for all members listed under project for name assignment
    - Admin assigned to the project will have all inserted tasks assigned to admin by default
    - If the "assignee" or "accountable" column exist in CSV, it'll try to match the name with what's found in the member list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant