Hello,
Due to the limit of 5000 executions in automation rules, we try to minimize using post functions,
I need to fill a date field on a transition via a post function, but need to do this only if this field is empty (need to catch the first date of the transition) how to achieve that using post function?
Need also to comment on an issue using post function
any suggestions please?
Thank you!
Hi @Fatima AALLA ,
I'm Sergio, a member of the support team from Decadis. We would like to propose you a solution using our app Jira Workflow Toolbox.
This requirement can be achieved using our post-function Update fields (by JWT).
When you give a value to your field, you must select "Set field value manually" as the value for the field, and then use the following general expression:
%{dateTimeToString({system.currentDateTime}, "yyyy-MM-DD", "en_GB")}
At last, you can use the following Conditional execution at the end of the post-function configuration for only giving a value to this date field if it's empty:
%{issue.cfNNNNN} = null
Replacing NNNNN for your date custom field code.
Also, if you want to publish a comment, we have a post-function which will allow you to add that comment, which is our Add comment post-function.
If you are interested in these approaches and need more information, please, feel free to create a request in our Support Portal, to visit our documentation or to reply us in this thread.
Best regards,
Sergio
I’m Charlotte, a support engineer at Appfire and I’m here to help you.
Unfortunately, natively, you’ll not be able to do it the way you need to. In the app where my team works, Jira Misc Workflow Extensions, you can use the Set issue fields (JMWE app) post function to update the value of one or more fields only if the field is empty, for example:
You just need to select the field that is going to be updated, then select the option "Set only if field is empty" and finally add the {{ now }} so that the date is set when the issue is transitioned to that particular status. Save it, publish the change and you're all set.
This is only one of the many functions JMWE offers, so, please feel free to contact our support if you have any questions about this function or about the app in general.
We'll be happy to help you! 😉
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Fatima AALLA , your first sentence seems incorrect. I think you are saying that you are trying to leverage Workflow Post functions to offset the reliance on Automation. In any event, back to your question. Could you not use the Field required validator accompanied with a transition screen requiring the user to enter a due date?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems that arbitrarily setting a due date via a post function is misguided. Would you not want the user to specify?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello @Jack Brickey ,
thank you for your response, no what I need is the date when a transition occured for the first time, I need to fill this date in a custom field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There isn't an automated means of doing this within post functions OOTB. Here are options:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.