Forums

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

Calculate

Marzi Goodarzian
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.
July 4, 2018

Hi

I have two custom field that show data with format (week, day, minutes,second),

I want to found difference two custom field,

example:

custom field 1 : 4w,2d,3m

custom field 2: 2w,3d,45m,8s

How do found difference between two custom field?

 

 tanks

1 answer

0 votes
Nir Haimov
Community Champion
July 4, 2018

It seems like these 2 customfields are free text, am i right?

Marzi Goodarzian
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.
July 4, 2018

yes, when create issue the custom field  is free text.

Nir Haimov
Community Champion
July 4, 2018

Then you must (programmatically) parse each text field into objects and convert each one to actual time values.

Once each field converted you will be able to do simple cf1-cf2 (minus) and you will get the diff

Marzi Goodarzian
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.
July 4, 2018

I know.
  My problem is with formatting

How do Uniformize  two custom field?

I work with calculated date- time field (by JWT).

thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events