Can I set Assignee to custom field in parent and set duedate to current +#

I am creating subtasks and trying to do 2 things 

  1. Parent issue has user picker custom field, I want this field to be used to set the assignee.
  2. I want the due date to be set to a date in the future - current date + 2days.

Is this possible using advanced Fields?

Thanks!

1 answer

1 accepted

This widget could not be displayed.

Hi Jenifer,

Yes you can do that. 

To set the assignee using the value of a user custom field. 

 

{
    "fields": {
        "Assignee": {"name": "{{issue.fields.My User Picker}}"}
    }
}

To set due date to current date + 2 days. Select the due date field in the edit issue action, and add this: 

{{#now}}func=plusDays(2){{/now}}

 Scott

Hi Scott,

Can the due date be set to a custom date field in the parent +2 days?   

Thanks!

Andreas Knecht Community Champion Jul 11, 2017

Hi Jenifer,

See our working with dates docs.  You can also use other date fields in smart values. Something like this should do the trick:

{{#issue.parent.fields.Other Date field}}func=plusDays(2){{/}}

Cheers,
  Andreas

Thank you!  I was looking at the Advanced Fields, totally missed the Smart fields and Working with Dates.

This add-on has been a life saver!  Review to come shortly!

Andreas Knecht Community Champion Jul 11, 2017

Hi Jenifer, 

No worries - happy to help!   Feel free to reach out again if you have more questions!

Cheers,
Andreas

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

491 views 3 18
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you