Forums

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

Script field to fetch the target project during Move issue action

Yoann BETZI February 27, 2024

Hello,

We are trying to build a Script Runner field which is going to return the target project while moving an issue.

It seems that such information is not in the issue context. We also know that the target project is set in an object of type com.atlassian.jira.web.action.issue.MoveIssue, but we don't know how to fetch such an object.

Do you have any idea?

Thanks

1 answer

1 accepted

1 vote
Answer accepted
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.
February 27, 2024

Welcome to the Atlassian Community!

There is no way to do this.  By definition, Jira does not know what project you are going to move an issue to until you tell it during the move operation.

Yoann BETZI March 1, 2024

Hi Nic,

Thank you for your answer.

We do give the target project in the first screen of the Move Issue. In the next screen, we would like this scripted field help filter on values related to the target project in an AQL filter.

Does it seem feasible to you?

Regards,

Yoann

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.
March 1, 2024

A scripted field is used to present data based on existing data, they are not for asking for data during an action.

There is no way to filter on a value that you have not yet given to Jira - it needs to be told what you want to do.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events