Automatically filled values

Hi there,

I am searching a solution for my problem:

In JIRA, I am trying to configure a custom field that way, that it is automatically filled with a provided value, when in another field a specific value is chosen...

Example: In custom field "A" (Start Date )a specific (current) Date is chosen . Custom field "B"(End Date ) now should be filled automatically with 10 working days responsible  chosen in field "A"

 Any idea, if this can be done?

Thanks

shajan

2 answers

This widget could not be displayed.
Gaston Valente Community Champion Oct 30, 2017

Shajan,

You can try with an script listener of scriptrunner to catch the issue edit event and update the field you need.

 

https://scriptrunner.adaptavist.com/5.1.8/jira/listeners.html#_custom_listeners

I found some solution for power script plugin .

I have shred the youtube link for End date automatically updated in Create an issue with +10 working days

 URL : https://youtu.be/YQkLeGxoa0A?t=272

I hide the  “DAY”  Custom-field for => Create issue, Edit issue and View issue Screens,

This widget could not be displayed.

There's a couple of ways you might want to approach this, and I'm not sure which one you want.

You've mentioned a "default" value.  This suggests that you want to put a field on the create screen for the user to fill in, but instead of being left blank, it is pre-filled with a value that depends on the current content of another field.  To do that, you will need to inject javascript into the create issue screen to catch changes in the source field, and calculate the target field, and then allow the user to change the target before creating the issue.  You might be able to do that with the "Behaviours" module of script runner or another add-on, or hacking your own js in there, but it's not going to be pretty.

The other option is to calculate the field and not let the user change it.  You have a couple of options there.  Gaston's answer covers calculating the value on every change in a custom field, but you could also use a scripted field to display the calculated value.  Again, you'd need ScriptRunner or a similar add-on to provide it.

I found some solution for power script plugin .

I have shred the youtube link for End date automatically updated in Create an issue with +10 working days

 URL : https://youtu.be/YQkLeGxoa0A?t=272

I hide the  “DAY”  Custom-field for => Create issue, Edit issue and View issue Screens,

it's very useful for me thanks @Shanavash Mohamed

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

580 views 25 15
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