Forums

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

[JMWE] - How to copy issue customfield (date) to specific LinkIssue and Status?

RIZKY JTUASIKAL
Contributor
March 13, 2025

I have a custom field named 'MoA Signed Date', and I also have 2 issuetypes.

 

Issuetype A and Issuetype B.

Capture.PNG

 

Issuetype A will be linked (using Relates to) with Issuetype B.

When submitting status on Issuetype A, it will copy a customfield (MoA Signed Date) to the Issuetype B that only has OPEN status.


How do I do that? Please Help


Any advice will be appreciated

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
David Fischer
Community Champion
March 13, 2025

Hi @RIZKY JTUASIKAL 

you need to add a Copy Issue Fields (JMWE App) post-function to your transition, with a configuration like this:

image.png

Of course, the source and destination fields will be "MoA Signed Date", and you'll have to update the issue type name in the conditional execution script:

{{linkedIssue.fields.issuetype.name == "Issuetype B"}}
David Fischer
Community Champion
March 13, 2025

Sorry, forgot the second condition on the linked issue's status, so the conditional execution script should be:

{{linkedIssue.fields.issuetype.name == "Issuetype B" and linkedIssue.fields.status.name == "Open"}}
Like RIZKY JTUASIKAL likes this
RIZKY JTUASIKAL
Contributor
March 13, 2025

Hi @David Fischer ,
as always, thank you for the answer!!


One more question, 

 

If you reverse the method:
When submitting status on Issuetype B, it will copy a customfield (MoA Signed Date) from Issuetype A to the Issuetype B that only has OPEN status.


then I need to configure it like this:

Capture.PNG

Current issue is Issuetype B


and for the Condition :

{{linkedIssue.fields.issuetype.name == "Issuetype A" and linkedIssue.fields.status.name == "Open"}}



am I right?

David Fischer
Community Champion
March 13, 2025

Not quite: you don't need a condition on the status of linkedIssue (Issuetype A). And you don't need a condition on the status of Issuetype B (the issue being transitioned) since you already know the source of the transition (if you created your transition from status Open)

Like RIZKY JTUASIKAL likes this
RIZKY JTUASIKAL
Contributor
March 13, 2025

@David Fischer ,


Well noted, and thank you very much for always helping us, we really appreciate your help!!

0 votes
RIZKY JTUASIKAL
Contributor
March 19, 2025

Hi @David Fischer ,

 

when I tried the query you gave me a few days ago,


it doesn't seem to work (but, it should work (?))

and when I check in the Post Function configuration, there is no error or warning notification.

Config.PNG


and this is the MoA Signed Date of Issuetype A

issuetype A.PNG


and this is from Issuetype B (MoA Signed Date didnt changed)

B.PNG


Any suggestion?

David Fischer
Community Champion
March 20, 2025

Hi @RIZKY JTUASIKAL 

did you trigger the transition on TBSM-65? Also, is the linked issue of type "MoA Project" and is its status "Open"?

You might want to go to the JMWE Logs page and temporarily set the log level to DEBUG, then trigger the transition and check in the logs that thee post function ran.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events