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

Groovy script associating fields to proyect

Jorge Gattas Dec 26, 2013

Hi everyone,

Sorry for my bad english, i made a groovy script to create a project and associate all the schemes (issue type scheme, workflow schemes, etc etc) and associate certain fields to the project created. I have to restart JIRA for the changes be reflected, ¿there any way to not restart JIRA after executing my script?


4 answers

1 accepted

0 votes
Answer accepted
JamieA Jan 03, 2014

Sounds like you need to clear a cache. Did you try built-in scripts -> Clear Caches -> Jira caches?

If that fixes it, then look at the code for that one and add it to your script.

Or you might try:


to clear just the CF cache instead of all.
0 votes
Aseem Parikh Jan 01, 2014

You shouldn't need to restart JIRA after running the script as far as I know script.

Have you tried re-indexing either manually or programmatically?

0 votes
Jorge Gattas Jan 02, 2014

Yes, i do. Reindexed JIRA after running the script and the only thing not working its the association of the fields to the proyect. But if i restart tomcat the fields are displayed correctly. Today i discover something strange, if i disable a plugin and then enable, the association of the fields is correct. So a process on the disable / enable plugin does something like a refresh, i dont know really.

0 votes
Jorge Gattas Jan 06, 2014

Thanks a lot! the customFieldManager.refresh() its working! :)

JamieA Jan 06, 2014

Feel free to mark my answer as correct ;-)

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar invitation: Generate custom Jira Cloud PDF reports and exports

Jira may be a staple part of your workday, but your colleagues, customers, business partners or an auditor might need information presented in a different format, that is easy to access and read. And...

64 views 0 1
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