Get week number via variable date syntax

How can I get the week number via the special Date variable syntax?

Currently I have: #{ | NowDate “dd-MMM-yyyy” }

But I would like to have the weeknumber so I can create: Release Notes week X

Hi @GerjanOnline,

Thanks for getting in touch! I’m sorry for the delay in getting back to you on this. I did some digging and it does not look like we support a week number option with our datetime syntax.

You may be able to use a custom script during your deployment to get the week number and edit the release notes via the API. This would be a hacky solution but could work to achieve what you need.

It might be worth creating a UserVoice Suggestion for this. We use UserVoice to gauge community feedback on new ideas and features. If a suggestions has enough community support behind it we can look into adding it into Octopus.

If you have any further questions or thoughts on this, please don’t hesitate to let me know.

Best regards,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.