Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I change the start date of a linked issue to "now" with post functions and nunjucks?

Hi everyone,

I have configured my Jira instance to collate all the issues within our project portfolio into a capacity plan program I created in Big Hand. I am using the original estimate to estimate the effort required for each task, these are then scheduled in the resource view provided by BigHand according to their start date and due date. 

It works amazingly, but the view is somewhat ruined by delayed tasks: I am not able to see how these are impacting on our capacity and what is the domino effect of a delayed task on the rest of the sprint/project stream.

I am willing to have a small discrepancies for single tasks running late, but I would like to reschedule the linked successor tasks as soon as the late one goes into "done" status.

I plan to do that with a post function attached to the transition that set the "predecessor" task to done. I just have a small issue, I don't know how to instruct JMWE to set the start date for the "successor" task to the moment the "task completed" transition has been executed.

 

is there a way to set the start date of a linked issue to "now" using nunjucks? Could anybody help me in understanding what is the correct expression I should use?

 

Thank you very much 

1 answer

0 votes

Hi,

did you look at the "Expected Value" help tab right below the Value field of the post-function configuration screen? It shows an example of how to input the current date, even explaining how to make sure the date is set to "today" in the desired timezone, as "now" can be one day in one timezone and the next (or previous) day in another:

{{ now | date("tz","America/Los_Angeles") | date("YYYY-MM-DD") }}

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Opsgenie

Leveraging Atlassian’s Opsgenie and AWS Cloudformation Registry to stay ahead of incidents

In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...

1,763 views 0 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you