Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cálculo de tempo de impedimento/bloqueio

Vinícius Pereira
Contributor
September 19, 2025

Pessoal, bom dia!

Sempre que um desenvolvedor está impedido de atuar em algum item, inserimos uma marcação no card, através da "flag vermelha" do próprio Jira.

Agora, preciso calcular por quanto tempo o Item ficou bloqueado, ou seja, marcado com a "flag vermelha".

Existe algum campo do próprio Jira que armazena esse tempo de bloqueio?

Se sim, que campo é esse? Ele acumula todos os tempos de bloqueio (caso o Item tenha sido marcado e desmarcado mais de uma vez)?

Se não, conseguem me sugerir uma solução simples para a realização e armazenamento deste cálculo?

Obrigado.

2 answers

0 votes
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.
September 19, 2025

Hi @Vinícius Pereira 

There is nothing built-in to calculate the time a work item was flagged.

Possible workarounds for this include:

  1. Using custom fields and automation rules, as described by @Matteo Vecchiato 
  2. Using the REST API endpoint for reading changelogs, gather all the records and measure the time differences between setting / clearing the flag between the records
  3. Investigate marketplace apps which use the changelog, as described above, to perform the calculation for you 

 

Kind regards,
Bill

0 votes
Matteo Vecchiato
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.
September 19, 2025

Hi @Vinícius Pereira ,

Thank you for your question.

There isn't any out-of-the-box solution to calculate the time a work item has been flagged.

To achieve this kind of requeriment I suggest:

  1. Create an automation triggered by "Value changes for" field Flagged, with change type "Value added".
    This automation should register the current time to a datetime custom field named "item flagged" 
  2. Create a second automation that calculate the time from current time to "item flagged.
    Triggered by "Value changes for" field Flagged, with change type "Value removed".

    Smartvalue: {{now.diff(issue.item flagged).seconds}}
    Add the result of the formula to a custom field "flagged time"

I've not tried it, it require some works, but it shoul works.

I hope it helps

 

Suggest an answer

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

Atlassian Community Events