Forums

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

Customfield advanced

Pierluigi Barca June 29, 2020

Hi guys,

Is there the possibility to set the value of a issue field in a my customfield?

For example:

my_customfield=Created (field of Issue Dates) and if there is the possibility to convert the value.

Ex.  my_customfield=convertInNumber(Created).

 

Thanks! 

2 answers

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 1, 2020

Hi Pierluigi,

With Jira Cloud, all instances now have the ability to use automation.  With Jira Cloud's own automation, we can certainly set values for customfields when they are created, edited, transitioned, etc.  There are other solutions in Marketplace that could help here as well, but I suggest automation because I'm confident it already exists in your Jira Cloud site.

You can create a new automation rule in that project and you will probably want to pick out a smart value, such as one of the date/time functions.  I don't know of a specific means to convert a date/time value into just a numeric field.  I think there is going to be some loss of the date/time value there in the process.  However I was able to set a text type custom field with automation and set that value to be the current time.  Since my trigger is when issue is created, that date/time is set into that field by automation.  My rule looks like this:

Screen Shot 2020-07-01 at 4.38.16 PM.png

And in turn my issue looks like this:

Screen Shot 2020-07-01 at 4.40.23 PM.png

Where my textdate field is set to get that smart value from automation.

I hope that helps.

Andy

0 votes
Nic Brough -Adaptavist-
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.
June 29, 2020

You'll need one of the scripting or automation apps to be able to do that.

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