GhostManager / Ghostwriter

The SpecterOps project management and reporting engine
https://ghostwriter.wiki
BSD 3-Clause "New" or "Revised" License
1.23k stars 174 forks source link

Jinja2 variables not accessible in word document properties #389

Closed domwhewell-sage closed 2 weeks ago

domwhewell-sage commented 5 months ago

The Jinja2 variables don't seem to be accessible in the document properties section. (In MS word select "File" > "Info") For example: image These variables don't get replaced. Filling out document properties in word has the added benefit of being available to the operating system so in windows you can use the search function. image image

Describe the solution you'd like Being able to add the jinja variables into the properties section would be the ideal solution.

Describe alternatives you've considered There are set properties such as "Authors" where all operators of the project could be automatically added or there is the "Tags" section which is where the project.tags could automatically get put. Its probably best to leave it up to the user though that way they can fill out as much or as little information as they want in the document properties

Additional context I have used python-docx before to add document properties so could contribute a PR if you are open to adding this feature.

chrismaddalena commented 4 months ago

I hadn't considered looking at document properties. I think that would be a neat addition. If you'd like to submit another PR for it, I'd be happy to accept the feature 😄

Otherwise, I'll make a note to take a look at how it might be done.

github-actions[bot] commented 1 month ago

This issue has been labeled as stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 weeks ago

This issue is closed because it has been inactive for 14 days since being labeled stale. Feel free to re-open the issue with a comment. If this needs further discussion (e.g., a feature request), it might be better to open a topic under the Discussions tab.