Get Issue state in JIRA Group Sign-Off configuration script

Parimal Patel November 24, 2013

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
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2013

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.

Parimal Patel November 24, 2013

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

Tim Theis April 29, 2014

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).

Christian Michael Arizala June 16, 2014

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

1 vote
Tim Theis June 17, 2014

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.

Christian Michael Arizala June 17, 2014

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

0 votes
eric anier
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2014

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

0 votes
Parimal Patel November 24, 2013

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

Suggest an answer

Log in or Sign up to answer