The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • I have to delete the worklog after cloning the Epic issues using Epic clone usingcustomscriptlistner

I have to delete the worklog after cloning the Epic issues using Epic clone usingcustomscriptlistner

mummareddy supriya
Contributor
June 13, 2024

Need to delete the work LOg after cloning issues, specifically for Epic, Story, and Subtask that were linked to Epic via Custom script Listener.If anyone has any ideas on this, please assist me with the script.thanks in advance

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Luka Hummel - codefortynine
Atlassian Partner
June 18, 2024

Hi @mummareddy supriya

I'm Luka from codefortynine.

If you are willing to use a third-party app for cloning, you could try our Deep Clone for Jira. Deep Clone can be configured so that only values you want are cloned. Deep Clone won't clone work logs as long the option isn't checked (which it isn't by default).

2024-06-18 16-07.png

0 votes
Krystian Różycki
June 14, 2024

I think in this listener that is linking issues you need to check if linked issue has a worklog and if there is any then just delete it using rest API:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs/#api-group-issue-worklogs

mummareddy supriya
Contributor
June 14, 2024

@Krystian Różycki  is it possible to do it through automation rules in JIra  to delete the worklog after clone? 

Krystian Różycki
June 14, 2024

I think yes with properly described triggers and conditions.

Here you can find more information:

https://confluence.atlassian.com/automationkb/automation-rule-to-remove-worklog-1252330334.html

 

mummareddy supriya
Contributor
June 16, 2024

Delete.PNG

@Krystian Różycki I Applied this  Automation Rule ,In place of webhook url i used https://your-domain.atlassian.net/rest/api/3/issue/projectkey/worklogid. in Header i provided useremail:personal token .but  its not working  and i'm facing below error when i gone through the logs ,may i know the reason please . Thanks in advanceerror.PNG

mummareddy supriya
Contributor
June 16, 2024

header.PNG

Why header is not allowing Delete option ,If any one have idea on this issue please let me know please .thanks in advance

TAGS
AUG Leaders

Atlassian Community Events