• 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 vote
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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

77 views 0 5
Read article

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