Unable to set the system date using JIRA automation

Garret Zhang
Contributor
January 19, 2024

Hi,

I am trying to set some Date field in JIRA via the automation during issue creation, but getting the following error message:

Error Message:

"Unknown fields set during create, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -

Target Lab Entry Date (customfield_10053), Target Lab Exit Date (customfield_10152)"
Automation rule:
Screenshot 2024-01-19 112955.png
Variable:
{{LabEntryDate}} = {{now.format("MM/dd/yyyy")}}
{{LabExitDate}} = {{now.plusBusinessDays(3).format("MM/dd/yyyy")}}
Create a New:
In the "Create a New" task steps I set the dates to the above variables:
"Target Lab Entry Date" set to {{LabEntryDate}}
"Target Lab Exit Date" set to {{LabExitDate}}
Audit Log:
I also verified in the log work that the two dates field work and got the following result in audit log:
Trigger
Garret triggered the rule
Log Action
Log
01/19/2024
Log Action
Log
01/24/2024
What am I missing here?
Thanks,
Garret

1 answer

1 accepted

0 votes
Answer accepted
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2024

Hi @Garret Zhang,

Can you verify if these fields are present on the create issue screen used in your project (check project settings > issues > screens; and for the Design intake issue type, check the screen associated with the create issue operation).

Fields that are not on that screen cannot be set.

Hope this helps! 

Garret Zhang
Contributor
January 22, 2024

@Walter Buggenhout Thanks for this! Fixed! :)

The field in the form is called "Target Lab date (Entry)", however, there was another custom field called: Target Lab entry date. Looks like I was inputting the wrong field.

 

Thanks a ton!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events