Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,358
Community Members
 
Community Events
184
Community Groups

Create an issue in a project chosen in a project picker custom field

In my project I have a custom field, project picker type. I want that everytime I choose a project in this custom field an issue is created in that project that I've chosen.
I'm working in server and I have scriptrunner installed.
How can I do it?
Thanks

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 23, 2021

So this is pretty close: https://library.adaptavist.com/entity/automate-the-creation-of-an-issue-in-jira

The adjustments you'll need are 

1. to do it as a post-function or listener (depends on exactly how you want to trigger the creation of the issue - your question reads like you want to do it every time the field changes on an issue, which I'm not sure is what you mean.  If it is, then you'll want a listener to catch "edit" events as well as maybe transitions)

2. Instead of the hard-coded project id, read your custom field.  A project picker should hand you a project object directly when you use getCustomFieldValue so you'd be able to replace the project = componentaccessort-etc stuff with that

I will try and let you know if works.

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events