Need help with Automatization

Леонид February 3, 2025

My trigger works on changing the task status. After which it should edit the task's custom field. I need the custom field to indicate the time it was in the "Sold" status. I don't understand how to implement this correctly.

1 answer

0 votes
Jovin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 3, 2025

Hey @Лёня Криволапов 

There are a couple of ways to achieve this, I'll only cover the one that doesn't involve using APIs and parsing information like that.


  1. Setup a new custom field (you can name it differently):
    1. Date Sold: The date the task entered the sold status
  2. Setup the workflow to populate this information:
    1. Create a Post Function on all transitions INTO Sold
      1. Choose Update Issue Custom Field and then choose "Date Sold"
      2. Set the value to %%CURRENT_DATETIME%%
  3. Update your existing automation rule to now calculate the difference:
    1. Set the field "Time in Sold" (or whatever you've named it) to be the smart value below, note the the minutes|hours|days|weeks indicates you should choose the appropriate time span you want to use
    2. {{now.diff(issue.Date Sold).minutes|hours|days|weeks}}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events