I made a post function to set a field date to today, but I needed to add 7 days to it, I try many different ways but none work, any suggestion on how to do it on the post function and not with automation?
I didn't find any post that would solve my problem without using the script runner
Welcome to the community.
This is not an option, you will need a marketplace app, like;
These apps can enhance workflow options and help you with your request or use Automation for this.
Hello Matheus Tonial,
you can use the below mentioned screenshot Automation rule to edit custom date field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Matheus Tonial welcome to the community and thank you for your question.
I would recommend using an Automation Rule to set the date with the appropriate timestamp. This does not require an app at all.
Documentation on working with dates in Smart Values: https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/#Calculating-business-days
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Matheus Tonial,
you can use the below mentioned screenshot Automation rule to edit custom date field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
A very similar question has been asked previously in this community:
How can I set a custom field date one week *before...
I'm hesitant to say that Google is my friend, but here it helped...
Dick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dick
You mentioned article relates to Trello and not JIra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc - Devoteam,
It's the line of thought in the article and the use of smart values (kindly mentioned by @Kai Becker as well) that are very similar to the problem described here.
There's more than one road leading to Rome
:)
Dick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dick
Yes in a way, but it can confuse people as all information in the article and related screenshots with configuration don't exist in Jira.
Hence this cold cause new questions from a user on options that don't exist in JIra
:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Matheus Tonial,
I am Nacho and i am part of the Decadis team.
As @Marc - Devoteam mentioned, it can be done with our app Jira Workflow Toolbox for Jira Cloud.
For this purpose, the Update fields post function can be created combined with the parser function addDays() to add 7 days.
Here is the expression that can be used:
%{addDays({system.currentDateTime}, 7, RUN_AS_LOCAL)}
And two screenshot of the post function configuration:
If you need more information, please feel free to create a ticket on our support portal.
Best regards,
Nacho
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.