How to fill "Target Start" and "Target End" automatically by status changing (JIRA Plans)

Victor Nikitin May 23, 2024

Hello!

Please help me in next case in JIRA automation if anyone can.

I have a JIRA plan, created and based on JQL for some module. This JQL contains up to 60 tasks (see screenshot attached below). There are fields "Target Start" and "Target End" in this JIRA plan. So, it will be grateful to have possibility in JIRA-automation:

  • set "Target start" when task was taken in work (when triggered to status 'IN PROGRESS' - blue JIRA-flow status).
  • set "Target End" when task was completed (when triggered to status "Complete" - green JIRA-flow status).

Now I have to set these fields manually.

Also I've found out this topic close to my case here

But I don't use the sprint - I use JQL to find the task for creating my JIRA plan. So, maybe there are some parameters, like

  • {
      "fields": {
        "Target start": "{{issue.sprint.last.startDate.jiraDate}}",
        "Target end": "{{issue.sprint.last.endDate.jiraDate}}"
      }
    }

but without using sprint and using my JQL.

Expected result

  1. If task is contained in my JQL and status was changed from "PLANNED" to "IN PROGRESS" - fill "Target Start" with this changing status date.
  2. If task is contained in my JQL and status was changed from "MERGED" to "COMPLETE" - fill "Target End" with this changing status date.

2024-05-23_163751_1.png

1 answer

0 votes
Geethanjali Katagani
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.
May 23, 2024

Hi @Victor Nikitin ,

By using Jira Automations, you can automatically fill the target start and end dates when an issue transitions to another status. I have created a sample automation rule based on this screenshot, and we can try to create it based on your requirements.

AC4.JPG

Let me know if you have any doubts or need further assistance.

Thanks,
Geethanjali

Victor Nikitin May 23, 2024

Hi, @Geethanjali Katagani ! 

Thank you for your reply, but... I don't see this condition: maybe you use Cloud Jira? In our Jira Server there are these conditions:

2024-05-23_181549.png

And I'm not sure if Start Date in your screenshot is the same as field "Target Start" in Jira Plan...

Geethanjali Katagani
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.
May 28, 2024

@Victor Nikitin ,

you can select issue field condition.

Regards,

Geethanjali

 

Victor Nikitin June 4, 2024

Hello, @Geethanjali Katagani.

Thanks for your reply again!

I carefully have looked up to this condition "Issue fields condition". And didn't find "Target Start" and "Target End" fields:

2024-06-04_170916.png

At the same time I've found out that not all fields were displayed in drop-down-list "Field":

2024-06-04_180129.png

So, I've wrote about this to our Jira Support with request to display "Target Start" and "Target End" fields if they there are. But Support specialist said:

The "Target Start" and "Target End" fields are non-standard, they are created by the "Portfolio for Jira" plugin, so they are not displayed in Jira Automation. I tried to fill in the date via a post function, but this did not work either. Alternatively, we can create two other custom fields and use them in the plan.

So, now I have next couple of questions:

1. Why Jira Automation doesn't display fields belong to "Portfolio for Jira" plugin?

2. Would be correct to use custom fields "Start Date" and "End Date" in Jira Plans?

----------------------------------------------------

Best regards and waiting for your soon reply,

Victor Nikitin

Suggest an answer

Log in or Sign up to answer