youngmon/atlassian-qna huggingface dataset:
ScriptRunner update a field
Asked by Eran Roiter:

In order for ScriptRunner in Jira to update a field is it necessary that the custom field will be Associated in an edit screen or is it enough to have in in View screen?

When a field is only on a view screen, it won't appear in the issue type, even though it is shown in the configuration of this issue type. As long as the field is on the view screen only, the script will fail. However, once I add it to the edit screen, it works.

The problem is, I don't want this field to be editable.

Any ideas on what I should do?


Answers:
author: Melo
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455),

Have you tried leaving the field in the edit screen but using behaviors to make it read-only? The script should be something like this:  

```
const customField = getFieldById("customfield_00000");

customField.setReadOnly(true);
```

*Just replace "customfield_00000" with the actual custom field ID.*  

According to the ScriptRunner assistant, "The field will still be editable by other scripts. Setting `setReadOnly(true)` only affects the user interface, making the field appear read-only to users. Scripts can still modify the field value using `setValue`."

I hope it helps.

Cheers,

Melo


Tags: cloud

jira-cloud
groovy script related query
Asked by Ashima Bhatia:

Hi team,

Kindly assist in resolving below error, that I get while running a scriptrunner script in workflow post function.

**groovy.lang.MissingMethodException: No signature of method: com.atlassian.jira.permission.WorkflowBasedPermissionSchemeManager.removeSchemesFromProject() is applicable for argument types: (String) values: \[AB\]**

I checked existing community answers as well but no luck.

Thanks

Ashima Bhatia


Answers:
author: Ashima Bhatia
body: Hi team,

Thanks for the answers. Perhaps I did not specify the problem statement clearly.

Requirement: I want to archive a project whenever a workflow transition happens. There is a status in my workflow named 'Archive'. So, when I select this status, my project(which is passed as a field in project) must be archived.

For executing this, I have a archival script which runs perfectly on script runner console, but gives lots of errors when I pass it in post function of Archive status transition: custom script post function.

Before I share the script, is there any other way to achieve archival of project during status transition instead of using the script?

Thanks

Ashima Bhatia


author: Radek Dost?l
body: For someone attempting to de-associate *some* schemes from a project in a workflow post-function, which all by itself is rather endearing and makes me question what you're doing, you certainly do have trouble reading the error message and thinking about what it's stating in plain english.

I truly have no idea why you would be calling that manager and trying to revoke some scheme from somewhere in a post-function. This really screams bad idea to me that should probably not be a post-function at all.

As Dirk already pointed out, and as the message states, you're passing an invalid data type into the \`removeSchemesFromProject\` method. Why you would need to call this method is a bigger question to me as opposed to what you're passing into it.

Before you fix that and move forward, I think it might be better to take a step back and think about what you're trying to do there, and whether it wouldn't make sense to do it in a better way. This does not sound like a good idea for a post-function in my opinion.


author: Dirk Ronsmans
body: [@Ashima Bhatia](/t5/user/viewprofilepage/user-id/5010928) ,

<br />

Can you share the piece of actual code that this error comes from? Seems like the argument you are passing is not the correct datatype.


Tags: data-center

jira-data-center

jira-server

server
How to take out list of done Tasks after sprint was close?
Asked by Priyanka Jadeja:

I have closed the sprint, but for sprint report I need to take out done tasks from closed sprint. how can I do this ?


Answers:
author: Vasyl Krokha _Broken Build_
body: Hi, [@Priyanka Jadeja](/t5/user/viewprofilepage/user-id/5521594) !

Could you tell me for what purpose you need this list of issues?

If you need to share the list as a screenshot or review them with your team, you can use one of those apps:

1. [Agile Reports and Gadgets](https://marketplace.atlassian.com/apps/1212120/agile-reports-and-gadgets?utm_source=atlassian&utm_medium=community&utm_campaign=reply) - for scaled enterprises (Scrum, Kanban, SAFe, Less, SoS).
2. [Agile Velocity Chart](https://marketplace.atlassian.com/apps/1215768/agile-velocity-chart-gadget?utm_source=atlassian&utm_medium=community&utm_campaign=reply) - for smaller companies with only Scrum teams.

Both include Velocity charts for Scrum boards, which provide a list of issues for a particular metric or segment.

You can simply select the needed sprint (1), and metric (2) and see issues in details (3):

![Velocity chart_ Scrum boards (9).jpg](https://community.atlassian.com/t5/image/serverpage/image-id/332100i15529F523657C309/image-size/large?v=v2&px=999 "Velocity chart_ Scrum boards (9).jpg")

Is it what are you looking for?

Olexiy

comments: author: Priyanka Jadeja
body: I have to make the sprint report. but I have closed the sprint.  
for that I am looking for done issues


author: Nikola Perisic
body: Welcome to the community [@Priyanka Jadeja](/t5/user/viewprofilepage/user-id/5521594) \\

You can use JQL for this where you specify the name of your project followed by AND which is followed by **sprint in closedSprints()**.

Sample query:

project = "My Project" AND sprint in closedSprints()

This will query all of the done tickets.

comments: author: Priyanka Jadeja
body: Thank you Nikola  

But , If I am adding my sprint no(particular sprint no/or last sprint no ) , then it is not showing the result


Tags: cloud

jira-cloud
How to validate a custom field using Regular Expression in Jira cloud
Asked by Priya_ThirumalaiKrishnamoorth:

I have a custom field and it is not a mandatory field. If user enters a value into that custom field, then it has to match the regular expression format. If it does not match, then error needs to be thrown to the user. It can also be empty

Can you please let me know how to implement this?

I tried using validators - But this is not working since the field can also be empty and we are not required to throw any error message.

Automation - We cannot throw error message to user and hence cannot use this.

Any other thought/suggestion is much appreciated.!


Answers:
author: Maciej Dudziak _Forgappify_
body: Hi [@Priya_ThirumalaiKrishnamoorth](/t5/user/viewprofilepage/user-id/5146343),

Did you try Regular Expression Check (Validator)? I think you should be able to use reqex in format:

```
(format)?
```

The question mark will match 1 or none formats

However, if you need a better validation message, you would need an app that provides a Jira expression-based validator. There are several options available on the Atlassian [marketplace.](https://marketplace.atlassian.com/search?query=jira%20expression%20validator)

I am from Forgappify, and we developed Jira Expression Validator, which is part of the [Workflow Building Blocks for Jira](https://marketplace.atlassian.com/apps/1233642/workflow-building-blocks-for-jira?hosting=cloud&tab=overview) app.

I answered a similar question here:

<https://community.atlassian.com/t5/Jira-questions/Re-Custom-Field-with-only-Serial-Numbers/qaq-p/2691128/comment-id/1015490#M1015490>

comments: author: Priya ThirumalaiKrishnamoorth
body: Thank you for the response.


Tags: cloud

jira-cloud
Not able to login through Jira Mobile App due to Action Blocked by your organization
Asked by Pramodh M:

Hi Community,

Our company has configured an Intune Policy to authenticate to any AD connected application through Azure AD and by this all Atlassian accounts authentication happens only through Edge Browser. And here the redirection rule from Chrome/Safari has been written, while it is working for other applications, it is not working for Atlassian Jira cloud

Please find the error below

*** ** * ** ***

![IMG-20240626-WA0013.jpg](/t5/image/serverpage/image-id/331806iDBFC0BB0FB4E43EA/image-size/large?v=v2&px=999 "IMG-20240626-WA0013.jpg")

Any hint would be appreciated

Thanks


Answers:
author: Zach
body: Also experiencing this issue. Oddly, Jira login works fine, but Confluence login results in this message.


Tags: cloud

jira-cloud
Automation to a newly created project to private
Asked by Joscha:

Hi

is it possible to set up an automation rule that changes the access level of a team managed projects to private? Trigger would be new team managed project created.

Thanks

Joscha


Answers:
author: Valerie Knapp
body: Hi [@Joscha](/t5/user/viewprofilepage/user-id/2761970) , thanks for your question.

I don't see a way to do this in Automation, maybe it would be possible with a script.

I would suggest another way to approach this, if you don't want team-managed projects to be visible to everyone, would be to restrict who can create team-managed projects with the global permission -

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/331814i0BEA4FE48A51FC76/image-size/large?v=v2&px=999 "image.png")

If you have a smaller group of people who can create the projects, you can ask them to set them to private, rather than leaving open the possibility that everyone could create projects and having to change the access retrospectively.

Hope this helps but would be glad to hear your feedback on this idea / approach.

Cheers


Tags: cloud

jira-cloud
How to allow access from all IPs for all our Org users
Asked by Aysha:

We want our users to work from home and allow them to access JIRA from any IP. Using their office credentials

How to allow access from all IPs for all our Org users


Answers:
author: Ollie Guan
body: Hi [@Aysha](/t5/user/viewprofilepage/user-id/5529468) ,

Create an allowlist so that only users from your IP addresses can access certain products.

IP allowlists are available for products with a **premium** plan.

<https://support.atlassian.com/security-and-access-policies/docs/specify-ip-addresses-for-product-access/>


Tags: cloud

ip

jira-cloud

statuspage
Gmail password update - Email requests are not working
Asked by Andrea De Candido:

Hi everybody,   
the Gmail account was connected to the E-mail requests setting in my Jira project, so everytime a customer writes to the Gmail, a Help task is opened in the project.  

Google asked me to change password periodically for security reasons.  

E-mail requests setting now is not connecting to Gmail correctly.   

What can I do to restore the connection?  

Thanks for you time.  
.A


Answers:
author: Mohanraj Thangamuthu
body: Hello, Good day. I would like to know if you have tried re-authorize the connection from Settings \>\> System \>\> Incoming mail server.

<https://confluence.atlassian.com/cloudkb/configure-gmail-imap-mail-servers-with-multi-factor-authentication-in-jira-965552856.html>


Tags: atlassian-accounts

cloud

jira-cloud

not-applicable
JQL query to return Issues without Analysis Story
Asked by Vidyasagar Nayak:

I am trying to write a query in JIRA that will list all EPIC and Problem Report without any Analysis Story ticket linked to them.

Not sure how to go about it. Any help would be appreciated. Thanks.


Answers:
author: Trudy Claspill
body: Hello [@Vidyasagar Nayak](/t5/user/viewprofilepage/user-id/5529429)

Welcome to the Atlassian community.

Your requirement cannot be met with native Jira DC JQL capabilities.

Do you have any plugins that extend the JQL capabilities, like Scriptrunner or JQL Search Extensions?

comments: author: Vidyasagar Nayak
body: Yes, I believe so.


Tags: data-center

jira-data-center

jql
For the free Jira/Confluence accounts is it 10 free users on each or 10 in total?
Asked by Jane Mac Donald:

Hi There

I just wanted to get clatification on the number of users on free accounts as we will be using these initially. Can you have ten free users in Jira and a further 10 in Confluence or is it 10 across both?

Thanks


Answers:
author: Rudy Holtkamp
body: Hi [@Jane Mac Donald](/t5/user/viewprofilepage/user-id/5529416) and welcome,

You can have 10 in each which can be different users/accounts.

comments: author: Jane Mac Donald
body: That's great, thanks so much for your reply


Tags: cloud

confluence

jira-cloud
The convert to-subtask option is not available on the "More" drop-down
Asked by vrunda:

How can i convert task to sub task in Jira Work management free plan.


Answers:
author: Bill Sheboy
body: Hi [@vrunda](/t5/user/viewprofilepage/user-id/5529426) -- Welcome to the Atlassian Community!

In Jira Work Management, company-managed projects show *Convert to Subtask* as a separate menu item but the team-managed projects do not.

Are you using a team-managed project?

If so, you may use the *Move* option, and then select changing the issue type to Subtask and add the new parent issue.

Kind regards,  
Bill

comments: author: vrunda
body: Yes we are using team managed products. The move option does not work if i simply drag and drop the task in sub task.


author: CHINNAMUTHEVISAI.SATYANARAYANASHARMA
body: Hi Vrunda,  

There are some possible reasons for this.

1) check if you have subtask issuetype added to your issue scheme. if its not there you wont see that option.

2) subtask issue type is there but still if you don't have permission for creating issues then you cant create them.

check these two options and let me know.

comments: author: vrunda
body: Yes i have added sub task to issue scheme.

I want to change some of the tasks that i have added to subtask.


author: CHINNAMUTHEVISAI.SATYANARAYANASHARMA
body: are you using Team Managed project or Company Managed Project? if Team Managed use the options which Bill shared above.


Tags: cloud

jira-cloud

jira-software
Please help ! Scrum Team Sprint Capacity Planner - spreadsheet
Asked by Smitha Joseph:

Could someone please share a free version of simple downloadable /editable Scrum Team Capacity Planner - spreadsheet which I can reuse for my team

Sprint


Answers:
author: Bill Sheboy
body: Hi [@Smitha Joseph](/t5/user/viewprofilepage/user-id/5524135)

You could try using an internet search for a template.

Or, partner with your Scrum team to...

1. review the prior sprints' history (perhaps the last 3-4 sprints)
2. using a whiteboard, tool, etc., list all of the team members
3. ask people to note their availability, removing holidays, out-of-office time, other obligations, etc.
4. when planning the sprint, decide how availability impacts capacity to select work for the team's sprint
5. check team confidence on the plan's likelihood to meet the goal
6. as needed, iterate over 4-5 to improve the sprint plan
7. start the sprint and observe progress, making adjustments to help meet the goal
8. after the sprint at the retrospective, consider how to experiment and improve in the future

Kind regards,  
Bill

comments: author: Smitha Joseph
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) Thanks for the detailed reply. I did try searching for a good template, but most of them were paid ones. Thought of checking if anyone was a using a free version, in which I just had to input the values


Tags: cloud

jira-cloud

jira-software
Dashboard > Gadget > Configure
Asked by Ravi Ingaleshwar:

I have tried to configure dashboard today! When I am clicking on configure, it's greyed out \& not opening any configuration options. But I am able to view the configure option enabled for the existing gadgets created by other team member. So, what would be the problem here with greyed out config?


Answers:
author: Trudy Claspill
body: Hello [@Ravi Ingaleshwar](/t5/user/viewprofilepage/user-id/5529392)

Welcome to the Atlassian community.

Can you provide a screen image of what you are seeing?

Do you have Editor permission for the Dashboard?


Tags: cloud

jira-cloud
How should I estimate story points when the total of development and QA effort is not a Fibonacci
Asked by Smitha Joseph:

How should I estimate story points when the total of development and QA effort is not a Fibonacci number.

How should I estimate story points for stories having both development and QA effort, eg: development needs 5 story points and QA needs 2 story points?


Answers:
author: Danut M _StonikByte_
body: Hi [@Smitha Joseph](/t5/user/viewprofilepage/user-id/5524135),

First of all QA and DEV should not estimate separately - this is still the old mindset from waterfall. You have to estimate the size of story relative to a base story, considering the entire effort DEV + QA. But this is another discussion...

If the estimation is between two Fibonacci numbers, go with the next Fibonacci number, for safety. In your case if the estimate is 7, go with 8.

Danut

comments: author: Smitha Joseph
body: [@Danut M _StonikByte_](/t5/user/viewprofilepage/user-id/502420) If my understanding is right, if the development team estimates 5 story points for dev and QA teams needs 2 story points , total would be 5+2 = 7 --\> we need to go with the next Fibonacci number 8 as the total estimate?


author: Danut M _StonikByte_
body: Correct.


author: Smitha Joseph
body: [@Danut M _StonikByte_](/t5/user/viewprofilepage/user-id/502420) Thank you for your help


Tags: cloud

jira-cloud

jira-software
Make mandatory to add a file in a transaction
Asked by Raul Rossi:

Hi,

we are analyzing the creation of a new workflow that requires Word documents to validate transactions. specifically, in one phase it is mandatory to receive an NDA from the customer before moving on to the next step. Anyone have any way to help us?


Answers:
author: Rudy Holtkamp
body: Hi [@Raul Rossi](/t5/user/viewprofilepage/user-id/5509505) ,

You can use a transition screen with a validation that an attachment has been added. However you can never be sure that the attachment is indeed an NDA. You can only be certain that a file has been attached.

With an automation rule you can validate that the name contains NDA or that it is of a certain type. And if it is not, you can opt to add a comment and return to the previous status.

Rudy


author: Maciej Dudziak _Forgappify_
body: Hi [@Raul Rossi](/t5/user/viewprofilepage/user-id/5509505)

If you are open to using apps you could check attachments including testing against filename using Jira expression-based validator available on the Atlassian [marketplace](https://marketplace.atlassian.com/search?query=jira%20expression%20validator).

I am from Forgappify, and we developed Jira Expression Validator, which is part of the [Workflow Building Blocks for Jira](https://marketplace.atlassian.com/apps/1233642/workflow-building-blocks-for-jira?hosting=cloud&tab=overview) app.

The expression you need is as follows:

```
issue.attachments.length > originalIssue.attachments.length 
&& issue.attachments[issue.attachments.length-1].filename.includes('NDA')
```

I am leaving a link to the [app's documentation](https://docs.forgappify.com/workflow-building-blocks-for-jira) if you are interested.

Cheers


Tags: cloud

jira-cloud
Not able to add/remove user in Jira group
Asked by deepashree_r:

We are facing issue while adding the user to group, this is applicable to single user in the instance for other users we are not facing any issue. PFA

![kk1.png](/t5/image/serverpage/image-id/331792i58AE33CEC3C5D851/image-size/large?v=v2&px=999 "kk1.png")![kk2.png](/t5/image/serverpage/image-id/331793i6689C71C8F496EDA/image-size/large?v=v2&px=999 "kk2.png")


Answers:
author: Vronik
body: Hi

Look at this

<https://support.atlassian.com/jira-cloud-administration/docs/create-and-update-groups/>

I hope it helps you or you have been able to solve it.


Tags: data-center

jira-data-center
Cannot Find Jira Advanced Roadmaps in Marketplace for Cloud Instance
Asked by Debony Schmidt:

Hi everyone,

I'm having trouble installing Jira Advanced Roadmaps on my Jira cloud instance. When I search for it in the Atlassian Marketplace, it doesn't appear. I also tried using a direct link I found through a Google search, but it returns an error message.

Has anyone else encountered this issue? Is there a specific way to install Jira Advanced Roadmaps on a cloud instance that I might be missing? Any help or guidance would be greatly appreciated!

Thanks in advance!

![Screenshot 2024-06-26 160409.png](/t5/image/serverpage/image-id/331790iA56E173998413DEA/image-size/large?v=v2&px=999 "Screenshot 2024-06-26 160409.png")

[Atlassian Marketplace](https://marketplace.atlassian.com/apps/1212136/advanced-roadmaps-for-jira-software-formerly-portfolio/version-history?versionHistoryHosting=cloud)


Answers:
author: Pramodh M
body: Hi [@Debony Schmidt](/t5/user/viewprofilepage/user-id/5200575)

Advanced roadmaps is part of Premium and Enterprise Subscription which is native to Jira in Cloud variant.

You will also get basic roadmaps feature named timelines in each project if you are under Standard plan

You would not need any addon for this!

You can navigate to Plans through navigation bar in UI to go to Advanced roadmaps section

Hope this clears

Thanks,

Pramodh

comments: author: Debony Schmidt
body: Thank you, Pramodh!


author: Duc Thang TRAN
body: Hello [@Debony Schmidt](/t5/user/viewprofilepage/user-id/5200575)

Jira Cloud's **Plan** feature (formerly **Advanced Roadmaps)** is available for Jira cloud Premium and Enterprise

More information :

<https://www.atlassian.com/fr/software/jira/guides/advanced-roadmaps/overview#how-to-get-started>

comments: author: Debony Schmidt
body: Thank you for the link, Duc Thang TRAN. This is helpful.


Tags: advanced-roadmaps

cloud

jira-cloud
Unable to Login after migrating JIRA Cloud to Data Center
Asked by Nevermind:

I recently migrated our JIRA instance from JIRA Cloud to JIRA Data Center. I followed the steps outlined in the official migration guide (link: [https://confluence.atlassian.com/adminjiraserver/migrating-from-jira-cloud-to-data-center-applications-938846963.html\\](https://confluence.atlassian.com/adminjiraserver/migrating-from-jira-cloud-to-data-center-applications-938846963.html)) to import the backup data into the new JIRA Data Center environment.

After completing the import process, I encountered an issue with accessing the system using the sysadmin account. The login attempt resulted in the following message:

```
<warning>
<message>Login form has been disabled on this instance.</message>
</warning>
```

I am unable to proceed further and require assistance to resolve this login issue. Thank you for your help.  


Answers:
author: Nevermind
body: I fixed this by updating the table

    com.atlassian.plugins.authentication.sso.config.show-login-form

<https://confluence.atlassian.com/jirakb/how-to-obtain-authentication-methods-via-a-database-sql-query-or-rest-api-in-jira-datacenter-1319567431.html>


author: Sudarsana G
body: Few Things you can do is

**Config File Check:**

* Check the `jira-config.properties` and `seraph-config.xml` files for any custom settings that might disable the login form.
  * These files are located in the `<JIRA_HOME>/jira-config.properties` and `<JIRA_INSTALL>/atlassian-jira/WEB-INF/classes/seraph-config.xml`.
* **Reindex:**

  * Sometimes, reindexing can resolve issues after migration. Reindex your JIRA instance to ensure all data is correctly indexed.
* **Access the Database:**

  * Connect to your JIRA database using a database client.
* **Verify sysadmin Account:**

  * Check if the sysadmin account is active and has the correct permissions.
  * SELECT \* FROM cwd_user WHERE user_name = 'sysadmin';

comments: author: Nevermind
body: Thanks for your suggestions.

Config File Check:

- I dont have \<JIRA_HOME\>/jira-config.properties

- \<JIRA_INSTALL\>/atlassian-jira/WEB-INF/classes/seraph-config.xml seems to be normal.

Reindex: How can we reindex without authentication?

Verify sysadmin Account: Yes, I have sysadmin account which is active


Tags: data-center

jira-data-center