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

How to set custom field values in the post function?

靳光光
Contributor
June 5, 2023

Hi, I have set a custom field called "todotime", I want to trac the time when one issue is transfered from "todo" to "inprocess". 

I fill it like this, but it does't work, is there some rules?

微信图片_20230606013943.png

 

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 5, 2023

Hello @靳光光 

If you want to set the field to the current date and time for when the transition occurs you need to use this value:

'%%CURRENT_DATETIME%%'

This is mentioned farther down on that screen.

Screen Shot 2023-06-05 at 2.27.06 PM.png

靳光光
Contributor
June 6, 2023

Thanks

LuisPinto June 6, 2023

@Trudy Claspill it is possible field with others smart values?

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 6, 2023

No. Smart values are used in Automation Rules. They are not used in Workflow Transition Post Functions.

If you want to use variables in workflow transition post functions you will need to consider third party applications that can extend the functionality of workflow post functions.

Like # people like this
靳光光
Contributor
June 6, 2023

@Trudy Claspill Could you give me an application which can extend the functionality of workflow post functions?

Like LuisPinto likes this
LuisPinto June 7, 2023

@Trudy Claspill Thank you so much for you answer.

I tried to use the macro %%CURRENT_USER%% and the result was the accountId, is correct? 

I was testing with a Text Field (read only) type. 

靳光光
Contributor
June 7, 2023

@LuisPinto  The field you creat must be User Picker (single user),  as below

微信图片_20230607194122.png

Like # people like this
LuisPinto June 7, 2023

@靳光光 Thank you so much.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 7, 2023

@靳光光 

You can find such applications through the Atlassian Marketplace.

Here is a sample search that will help you get started:

https://marketplace.atlassian.com/search?hosting=cloud&product=jira&query=workflow%20post%20functions

Like 靳光光 likes this
靳光光
Contributor
June 7, 2023

Well, I thought you were talking about something like java, smart value...

Suggest an answer

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

Atlassian Community Events