Jira automation plugin to update a date/time field

We have issues scheduled to be created every morning at 8am. We want the due dates on those to be set automatically, to be precise date as the day issue is created and time is fixed for each issue.

We tried using the Jira automation plugin for it. The audit log for the plugin says it executed the transition but when I look at the issue the field does not show up. My screen has the field in it and create, view as well as edit screens have that field. Can anyone help me with this? What am I missing here?

5 answers

Hi Sneha,

Is the field is custom field or system field?

Thanks,

Patina

Hi Patina, It is a date time picker which is a custom field Thanks, Sneha

Please check in the custom field configuration. Is this field is configured with your project? or the customfield configured for global to all projects?

Hi Patina,

The field is only configured for my project and not globally for all. Thanks.

As I just stumbled upon a quite similar challenge, I found following description within the Automation plugin:

  • You can use the default fields, like: $issue.summary, $issue.description and $issue.assignee.name
  • You can use custom fields, by providing their ID, for example: $customfields.get(10000)
  • To assign a value to a customfield, you can use: customfield_10000=Example: $issue.summary
  • To prepend a value from a customfield before the summary, you could do use: summary=$customfields.get(10000) $issue.summary
  • Text and number fields are currently the only supported custom fields

So it seems, date fields are simply not supported... currently sad

 

I got the similar request and faced the similar challenge that Automation plugin doesn't work with a date field. I tried to get $issue.duedate to copy the current value of the issue due date, but the target field got only the text, literally exact text string of '$issue.duedate'

How can we get the value of $issue.duedate in JIRA Automation rule, anyone know?

Thanks

I figured out that 

customfield_xxxx=$issue.dueDate

will work, even though the format text will be YYYY-MM-DD HH:MI:SS.F

and we can not change it

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,467 views 2 7
Join discussion

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