Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Using a Create/Clone Post-function with JMWE to set a Date Field based on Frequency Field

Hi Atlassian Community;

I am using a Create / Clone Issue(s) Post-function through JMWE and am trying to set up a recurring type workflow with an Audit style issue process.

To simplify it, I have the following setup.

Custom Field A: Issue Frequency

  • Drop-Down field with 3 values
    • Weekly
    • Bi-Weekly
    • Monthly

Custom Field B: Due Date

  • Date Field

On the very first initial issue creation, the creator specifies the Due Date and the Frequency.

As the issue moves through the workflow, on the In-Progress --> Done Transition, the  Create/Clone post-function kicks in and creates a new issue with select fields that copy over.

For the date, I want the 'Due Date' to change from the initial due date to be either

  • + 7 for Weekly
  • + 14 for Biweekly
  • + 31 for Monthly

Based on the Issue Frequency selected.

Is there a way to do this on the Set Field value to Groovy Expression within the Set Fields of New Issue in the Post-Function.

Thank you in advance.


1 answer

1 accepted

0 votes
Answer accepted

Hi @Dillon ,

In the "Create / Clone issue(s) (JMWE app)" post-function, select the "Due Date" field under "Set fields of new issue" and add the below "Groovy Expression"

if(!!issue.get("duedate")) {
switch(issue.get("customfield_10300")) {
case "Weekly": return (issue.get("duedate") + 7)
case "Bi-Weekly": return (issue.get("duedate") + 14)
case "Monthly": return (issue.get("duedate") + 31)

Replace 10300 with the id of the 'Frequency' field.

JMWE config.png

We have opened a support ticket in the Innovalog support portal to better track your request. However, we couldn't add you as a reporter.  Please sign up using this link and share the user name/id. We'll then add you as the reporter and confirm. 



Suggest an answer

Log in or Sign up to answer