Post script on create to set due date

I would like to set a due date on create from a post function however I can not get this to work.

The issue is created via email into the system so I tried to add a post function to set the due date to current date.

3 answers

1 accepted

There are two possible troublems:

  1. Any postfunction to modify a created issue must follow the function that creates issue (by default this is a first postfunction in a list)
  2. There are error into update issue postfunction. In this case try this to speed up development: https://answers.atlassian.com/questions/32982259

 

This is what I tried so far:

I created a post function on Create called Update parameters of the opy value from other field function for this transition.

Source filed = Created and Destination filed = Due Date Option copy with same issue.

In to post function list I have placed it from 1st in list to bottom of list and ever spot in between and it in not coping the created date into the due date.

1 Created the issue originally

2. Re-index and issue to keep indexes in sync with database

3. Fire a Issue Created event that can be processed by the listeners

4 (my post function)

 

Let's specify the trouble. 

  1. Does this post-function works? Try to test this post function on some transition exept creation to make sure
  2. Does this postfunction works on creation. Try to make sure for standart creation
  3. Does this postfunction works via email creation?

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published 12 hours ago in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

321 views 4 4
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