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,298,269
Community Members
 
Community Events
165
Community Groups

Simple Question - How Can I set null value to Component

Hi team,

I want to set null or empty value to component if another field gets changed upon closing of the ticket

So that User has to select new value into Component.

Trying a lot but couldn't get success, I am trying on behavior with groovy.

Please help here.

1 answer

1 vote
Craig Nodwell Community Leader Jun 24, 2022

Hi @Rakesh Jajper sounds like you have scriptrunner.  I would suggest that you put this as a custom scripted post function, or possibly a custom event with a listener script associated to it.  But IMHO the scripted post function would make more sense in this situation.

Thanks @Craig Nodwell but how to put that dont know exact structure to put it in.

Can you help me here, I know how to set custom field value as component but dont know how to set components itself as per other field value or if field changed only that time set null to component field.

Craig Nodwell Community Leader Jun 24, 2022

Hi @Rakesh Jajper I have a job buddy.  I will help but you have to do the work.  Have a look at the examples given in the Adaptavist documentation and the Adaptavist Library.
Adaptavist Library 

Do be afraid to try, you got the job you have now because you have skills - Trust in them.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,836 views 37 48
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