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

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

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?

1 answer

1 accepted

0 votes
Answer accepted

So this is pretty close:

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.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

228 views 4 9
Read article

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