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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

A sub Task to be created only 7 days before the end date.

Hi,

We have a workflow transition where we have a post function to create a subtask but I want this subtask to be created only before 7days of the end date. How can we achieve this?

I tried a validator which blocks the transition until I reached 7days of the end date and then using project automation to perform the auto transition but had no luck.

 

Below is the JQL used as automation rule condition;

issuetype = "Leave of Absence" and status="Leave of Absence In Process" and "End date" >= -7d

Your earlier response is appreciated.

 

Thanks,
Raj

1 answer

Hi,

Please note that validator is executed against main inssue, not sub-task.

To obtain your goal you can use Workflow PowerBox app. It has option to run post function based on some condition (eg. when it's less than 7 days till end date).

It also has option to run validator using JQL.

Hi Robert,

Thanks for your response.

Is there a way I can do it without this app

Thanks,
Raj

Hi,

It can be possible with Automation or Script runner, but I don't have Automation for Jira installed to check it out.

Hi @Robert Dzido ,

Can you help me with the JQL to filter out the tickets which are due in days of the end date?

 

Thanks,
Raj

Hi @Raj Kumar ,

What do you mean by "due in days of the end date". If end date is a custom field and you want to create sub-task not more than 7 days before "end date", your condition should look like "end date" < 7d

Hi @Robert Dzido ,

Please find the JQL used it is not giving me the intended result can you please check and help.

Attaching screenshot for your reference.

 

In screenshot  Start date =06/03/2019 and end date= 09/16/2019 

newsub.jpg

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you