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

{{issue}} smart variable is not set when issue created rule is fired in JIRA Cloud automation

Edited

I have setup a project automation rule with the following:

 

1. When: Issue created

2. Edit Issue Field: Due date =  {{issue.[<customField>]}}

[EDIT] To clarify the exact "edit".  I want to perform a date operation using two custom fields.  customField1.minusDays(customField2).  The issue is that both of the field values are always empty, since I cannot use the smart variable for issue. or createdIssue.

 

When the rule runs, the audit logs says it is successful.  However, the date is never set.  I have tried a large variation of setting issue fields (not just date) and I cannot get it to work.

 

I have reverted to just adding an audit log when issue is created and logging the values.  The logged values are always empty.

Different variations such as:

{{issue.fields}} OR {{issue.fields.asJsonString}} OR {{fields.asJsonString}} OR {{createdIssue.fields.asJsonString}} OR {{triggerIssue.fields.asJsonString}} OR {{issue.key}  

 

I am unsure where to go from here.

1 answer

Hi @Daniel Harrison 

Are you trying to populate the Due Date field with the same date in another date field? If so, you can use the Copy From function (the 3 dots next to the field in the edit field action), so in this case, you wouldn't need to use the smart values

Hi Callum,

I want to set the due date using date operations on two custom fields.

customField1.minusDays(customField2).  

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

136 views 1 2
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