Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

[JMWE] Find bigger date from Epic's issues and copy it to an Epic field

Hi all!

Let me lay out the foundation for my question:

I have an epic. Below this epic, I have two different issue types: dev & specs. The dev issue types have an actual start date field and actual end date field (both date picker fields), which are automatically added to each issue, upon starting the progress or completing the work. I'm using JMWE on my cloud instance.

My question is the following: Upon Epic's resolution (moving from e.g. in progress to done) I want to search for all dev issues which belong to this epic and which must be resolved. Then, if they are all resolved, find their Actual End Date, take the most recent one (the bigger, the greatest, the one closest to today) and then copy it on the same field on my epic.

Any ideas?

Cheers!
Alex

1 answer

1 accepted

Hi @Alex Koxaras ,

Add a "Set field value (JMWE app)" post-function on the Done transition of the Epic. Select Current Issue under Target Issue(s), select the destination field and add the below value : 

{% set issues = issue | stories() | filter(["fields.issuetype.name","dev"]) %}
{% if issues | filter(["fields.status.name","Resolved"],true) | length == 0 %}
{{issues | filter(["fields.customfield_10083",null],true) | field("fields.customfield_10083") | sort | last}}
{% endif %}

Replace "dev" in line #1 with the desired issue type name(which belongs to Epic), replace "Resolved" in line #2 with the required status of the dev issues and replace "customfield_10083" with the id of "Actual End Date" custom field.

SMWEC-2240.png

 

We have opened a support ticket, https://innovalog.atlassian.net/servicedesk/customer/portal/10/SMWEC-2240 to better track your request. However, we couldn't add you as a reporter.  Please sign up using this link https://innovalog.atlassian.net/servicedesk/customer/portal/10/user/signup and share the user name/id. We'll then add you as the reporter and confirm. 

Thanks,

Suprija

Hi Suprija,

I truly appreciate your answer and what you have provided clearly worked! Can't thank you enough :)

I've created an account and you may find my username under my Full Name "Alex Koxaras".

Alex

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you