Get Issue state in JIRA Group Sign-Off configuration script

My Question here is,

Can we somehow get the state of the Issue like we do for getting Priority from issue Object as given below:

issue.getPriorityObject().getName()

Because I want to show the Group Sign Off Control Buttons only if issue is in particular workflow state..

Thanks,

Parimal

4 answers

1 accepted

1 vote

I think we need more information on what you're doing and what your setup is.

Jira doesn't have "group sign off" and you haven't explained where you're getting this from or how you have configured it in your Jira. Generally, you implement sign-off/authorisation stuff in the workflow and control its flow with conditions and validators, but we really don't know what you're doing here.

Thanks Nic for Your reply..

I am configuring JIRA Group Sign-Off plugin. Here are the links of the documents I am referring right now..

https://marketplace.atlassian.com/plugins/de.polscheit.jira.plugins.group-sign-off
http://www.polscheit.de/plugins/jira/group-sign-off/GroupSignOff-Docu.html

I have also configured conditions on the workflow state transitions as you've asked.

My aim was to display the controls as displayed in

https://dq1dnt4af4eyy.cloudfront.net/files/images/de.polscheit.jira.plugins.group-sign-off/88f1907f-5227-413d-a39c-f3795b651435.png

based on the current state of my Issue from [In Peer Review, Accepted, Rejected, etc]..

For that I wrote down script according to the examples given in above links.

Thanks again,

Cheers,

Parimal

You could configure the WF transition (into the approval status) to populate the script into the group sign-off field... this would prevent it from displaying it until the issue enters your approval status.

I have done this and it works good, but the issue is that the field can't be used to initiate notifications to the derived approvers (we have a good sized script in the field that derives the approvers dynamically).

Hi Tim,

Can you provide me a script wherein the sign off will only show when it is in a certain status? And how can I have multiple sign off users wherein multiple custom fields are being used?

Thanks

Christian-

1. The script itself doesn't drive the visibility, but instead when you apply the script to the custom field... so you will want to set this on the inbound WF transition for the desired status where it will show.

2. The script you apply in the transition will need to pull from the various custom fields you want to use and concatenate them into the sign-off rule.

Hi Tim,

How to get multiple user custom field in my script? Because I only tried getting one user custom field to sign off. Another question is how can i remove the sign off in my create issues and only show it in my view issues? How can i set in my sign off that it depends on the user which people are she going to include in the sign off? Because after I create an issue it will go automatically to the requester division head and my requester division head will assign persons who can sign off in this particular transition before she can approve the issue. Please help

Thanks Nic for Your reply..

I am configuring JIRA Group Sign-Off plugin. Here are the links of the documents I am referring right now..

https://marketplace.atlassian.com/plugins/de.polscheit.jira.plugins.group-sign-off
http://www.polscheit.de/plugins/jira/group-sign-off/GroupSignOff-Docu.html

I have also configured conditions on the workflow state transitions as you've asked.

My aim was to display the controls as displayed in

https://dq1dnt4af4eyy.cloudfront.net/files/images/de.polscheit.jira.plugins.group-sign-off/88f1907f-5227-413d-a39c-f3795b651435.png

based on the current state of my Issue from [In Peer Review, Accepted, Rejected, etc]..

For that I wrote down script according to the examples given in above links.

Thanks again,

Cheers,

Parimal

Hi Tim,

With group sign-off, how can we notify (email) the people that needs to sign-off?

Do we also have a gadget to display the issues that users need to sign-off?

Thanks,

eric

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
Posted Friday in Off-topic

Friday Fun: Riddle me this

Happy Friday, Funmakers! We had a Community Team offsite in Austin this week, and my mind feels primed for thinkin' from all the brainstorming we did!  So, this week's Friday Fun thread w...

127 views 14 3
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