Hello Team,
I would like to request a urgent help !!
I want to create some custom fields but not sure how it will work , I tried to use calculative fields but still no resolution.
Budget left: Budget set - Budget spend
Budget left %: Budget left / budget set
Days left (%): Deadline date - Created date
Thanks so much
Regards
Suraj
May be Script Fields will help you. In the Inline script you can do the required calculation as mentioned above.
So we can't create custom fields for above request..?
Apologies if i am asking wrong ques.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here in this example:
Budget left: Budget set - Budget spend
import com.atlassian.jira.issue.*;
import com.atlassian.jira.component.ComponentAccessor
// Get the current issue key
Issue issueKey = issue
def id=issueKey.getId()
// Get access to the Custom Field Manager
def customFieldManager = ComponentAccessor.getCustomFieldManager();
// Get the required date field values
def Budgetset = getCustomFieldValue("Budget set")
def Budgetspend = getCustomFieldValue("Budget spend")
def Budgetleft = Budgetset - Budgetspend as Double
// Display the result on the issue
return Budgetleft
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry Abhipsa but it didn't worked. I resolved my issue by using correct calculation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.