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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

Incidencia se clona bien pero no clona con la fecha de vencimiento, deja el campo vacío.

Hola Comunidad,
He revisado la documentación existente y he probado hasta con Chat GPT pero no encuentro la solución.

Debo crear una incidencia que se clone cada 3 meses el día 5.
Febrero, mayo, agosto y noviembre, aunque no es necesario que estén explícitos los meses. Lo que importaría seria que se clone con la fecha de vencimiento. Actualmente se clona perfectamente pero el campo fecha de vencimiento lo deja vacío.
Realizo algún cambio pero me da todo exitoso!

Actualmente tengo: {{issue.clone.plusMonths(3).withDay(5)}}

Muchas gracias y Saludos

image.pngimage.pngimage.png

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 06, 2023

Hi @Gianina Zeballos 

Are you trying to set the new issue's due date based on the existing one?

If so, please try changing that smart value expression to this:

{{issue.duedate.plusMonths(3).withDayOfMonth(5)}}

Kind regards,
Bill

Hola Bill, 
Gracias por tu pronta respuesta.
Probé lo que me enviaste, continua igual. Clona perfecto pero no la fecha de vencimiento y da como resultado: Éxito.
Estoy intentando especificarlo en el campo de verificación para no tener que cambiarlo o colocarlo en la incidencia al clonar, (no se si responde a tu pregunta).

Saludos cordiales

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Nov 06, 2023

What value do you want in the Due Date field for the cloned issue?

For example, do you want:

  1. what I showed with the Due Date incremented from the trigger issue
  2. incremented from the current date, {{now}}
  3. something else?

 

And does the trigger issue have a value in the Due Date field?

Buenas tardes Bill,
Sería desde el problema desencadénate, ya que siempre es un mismo día.
Cuando creo la incidencia le especifico la fecha de vencimiento, al clonarse se mostraría con el mismo numero pero diferente mes.



Probé con esto y funcionó:

 {{now.withDayOfMonth(5).plusMonths(3).withHour(0).withMinute(0)}}

Gracias, gracias, gracias!!!!!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events