• Community
  • Products
  • Jira
  • Questions
  • Can I assign a value to a custom field at time of Issue Creation based on the JIRA Project the Issue is created in?

Can I assign a value to a custom field at time of Issue Creation based on the JIRA Project the Issue is created in?

Here is my scenario:

I have multiple JIRA Projects using the same workflow and I need to 'tag' each Issue with the originating Project because my Issues can move Projects and I need to tie/link it back to the original Project.

I want to automatically assign/populate a value for a custom field (single select) @ the time an Issue is created based on the JIRA Project in which the Issue is created.

is this possible?

Regards,

Eddie

2 answers

1 accepted

0 votes
Daryl Chuah Atlassian Team Mar 19, 2013

Hi Eddie

You can configure different custom field option value differently for numerous different combinations of issue types and projects.

For more informatio, please check this documentation: Custom Field Context

Hope it helps

Cheer :)

[shameless plug] "Slingshot UpdateFields" post function or listener can help you, see here.

The post function can set (or add) virtually all issue fields, not just basic ones, including customfields. As input it can take a fixed value (e.g. username, emailadress), an other fields (e.g. project), or it can even do some simple calculations/lookups. You can create a read-only custom text field and set it using this add-on.

Besides the postfunction, Slingshot UpdateFields comes with a configurable Listener to synchronize data fields between related (linked, parent, subtask) issues or within one issue, which could also be used in your case.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,147 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot